summaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
AgeCommit message (Collapse)Author
2006-07-16Ignore empty lines, don't try and process them as commandsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4430 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16*Changed user input/output buffering to incur less copiesbrain
*Fix warnings in command_parse git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4418 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Document loopcall (its still complicated in concept, but now easier to read ↵brain
and possibly easier to understand) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4413 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Created new class irc::commasepstream.brain
Will read comma seperated lists and works identically to irc::tokenstream It's re-entrant so we can run two of them together for JOIN git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4412 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Fix case sensitive commands issue due to new std::string based parser, ↵brain
improve the craq disabled commands check that was potentially O(n) where n is the number of disabled commands (erk) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4404 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16mass tidyup, change A LOT of stuff to const char** which was char** (such as ↵brain
parameters to commands in handlers) which makes the new lineparser work neater with no casts. This also removes tons of casts from other locations (all in all, ive added 2 casts and removed almost a hundred) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4403 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16MAJOR tidy of line parser, some parts rewritten and major chunks removedbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4402 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-15Removed GCC2 checks as we havent supported gcc2 for yearsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4394 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08Refactored user modes to work like the channel modes - core and module data ↵brain
now the same storage format without ::modebits git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4175 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-08Split inspircd_io.* insp inspsocket.* and configreader.* with a few odd bits ↵om
going into inspircd.*, doesn't look like I've broken anything... :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3847 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-11Missed some stuffbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3664 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-10Typobrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3625 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-10Tidyupbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3623 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07Checking of user/nick/pass without strncmp! (compare object pointers in the ↵brain
command map!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3511 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07Removed a lot of total craqbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3500 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07Improved ProcessParameters (removed strlen)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3498 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06Tidied (and COMMENTED) CommandHandler::LoopCall() -- commit so that i can ↵brain
test on brainbox git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3496 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-02Changed definition of CallHandler and CallCommandHandler for the ability to ↵brain
return false on bad command. This allows us to terminate server links that send commands we dont know (e.g. admin loads module A after linking, we dont have module A, when it sends module A's command, abort) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3414 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-24Now sends out warning when oper on a remote server tries to execute a ↵brain
command that the local class tags say they shouldnt be able to access. Helps detect desyncs caused by muppeted configs, or just plain nefarious goings on. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3318 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-19This was back to front and threw an exception when the command DIDNT exist ↵brain
(whoooops!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3251 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-19Missing semicolons are bad.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3248 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-19Server::AddExtendedMode and Server::AddCommand will now throw exceptions ↵brain
when adding a bad mode or already existing command. If the module constructor does not handle this exception, this will abort the module's constructor, forbidding loading of modules which are unable to function (smart eh) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3246 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-15Sped up disabled commands checkbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3222 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-15Removed a whole lot of strchr's looking for mode +o where we can do if ↵brain
*user->oper git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3221 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-15- Useless loop removedw00t
- Intenting cleaned up - command_parse stuff (really) needs proper going over and at least commenting what stuff does. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3216 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-07Experimental improved string handling in server linksbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3127 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-07Now errors when sent SERVER on a non-server portbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3119 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-23Warning fix.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2865 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-22Allowed for configuration of maxtargets in <options:maxtargets>brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2848 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-15Updated copyrights in headers etc using perl inplace editbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2795 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-29Changed to MAX_DESCRIPTORSbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2700 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-29Fixed an extremely n00bish mistake involving referencing a global copy of ↵brain
ServerEngine when we now use one local to class InspIRCd (everyone point and laugh at Brain) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2692 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-28Changed from std::map to hash_mapbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2686 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-28Fixed typosbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2685 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-28EXPERIMENTAL: Command search function now uses std::map, should be faster (i ↵brain
hope) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2684 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-26Adding hook type checking to event calls to speed them upbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2653 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-22Optimized out strcpys that copy empty strings (craq++)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2637 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-21Updated m_alias to fix bug #92, updated configsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2603 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-21Improved m_alias to only capture complete commands and rewrite them (bug #92 ↵brain
as reported by strike) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2601 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-18Added IOHookModule stuff to allow for different modules to hook different portsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2564 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-16Split all commands into seperate files and redid command system to take ↵brain
classes, not function pointers (function pointers suck ass) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2534 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-16Moved serverstats stuff outbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2529 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-16So many inclusion loops it makes your head spin - forward declaring tons of ↵brain
classes to fix git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2523 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-16Fixed some return type craqbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2516 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-16Moved more command parsing stuff to CommandParserbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2514 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-16Changed to include its own headerbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2513 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-16Moved command_parse functions into class CommandParserbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2510 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-16Fixed some crapbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2506 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-16Moved command parsing crap into command_parse.cppbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2505 e03df62e-2008-0410-955e-edbf42e46eb7