summaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Document loopcall (its still complicated in concept, but now easier to read ↵Gravatar brain2006-07-161-26/+35
| | | | | | and possibly easier to understand) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4413 e03df62e-2008-0410-955e-edbf42e46eb7
* Created new class irc::commasepstream.Gravatar brain2006-07-161-179/+26
| | | | | | | | 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
* Fix case sensitive commands issue due to new std::string based parser, ↵Gravatar brain2006-07-161-38/+19
| | | | | | 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
* mass tidyup, change A LOT of stuff to const char** which was char** (such as ↵Gravatar brain2006-07-161-9/+8
| | | | | | | | | | 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
* MAJOR tidy of line parser, some parts rewritten and major chunks removedGravatar brain2006-07-161-287/+38
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4402 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed GCC2 checks as we havent supported gcc2 for yearsGravatar brain2006-07-151-5/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4394 e03df62e-2008-0410-955e-edbf42e46eb7
* Refactored user modes to work like the channel modes - core and module data ↵Gravatar brain2006-07-081-7/+10
| | | | | | now the same storage format without ::modebits git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4175 e03df62e-2008-0410-955e-edbf42e46eb7
* Split inspircd_io.* insp inspsocket.* and configreader.* with a few odd bits ↵Gravatar om2006-04-081-11/+1
| | | | | | 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
* Missed some stuffGravatar brain2006-03-111-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3664 e03df62e-2008-0410-955e-edbf42e46eb7
* TypoGravatar brain2006-03-101-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3625 e03df62e-2008-0410-955e-edbf42e46eb7
* TidyupGravatar brain2006-03-101-10/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3623 e03df62e-2008-0410-955e-edbf42e46eb7
* Checking of user/nick/pass without strncmp! (compare object pointers in the ↵Gravatar brain2006-03-071-6/+20
| | | | | | command map!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3511 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed a lot of total craqGravatar brain2006-03-071-70/+37
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3500 e03df62e-2008-0410-955e-edbf42e46eb7
* Improved ProcessParameters (removed strlen)Gravatar brain2006-03-071-12/+15
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3498 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidied (and COMMENTED) CommandHandler::LoopCall() -- commit so that i can ↵Gravatar brain2006-03-061-45/+91
| | | | | | test on brainbox git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3496 e03df62e-2008-0410-955e-edbf42e46eb7
* Changed definition of CallHandler and CallCommandHandler for the ability to ↵Gravatar brain2006-03-021-7/+5
| | | | | | | | | 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
* Now sends out warning when oper on a remote server tries to execute a ↵Gravatar brain2006-02-241-0/+7
| | | | | | 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
* This was back to front and threw an exception when the command DIDNT exist ↵Gravatar brain2006-02-191-1/+1
| | | | | | (whoooops!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3251 e03df62e-2008-0410-955e-edbf42e46eb7
* Missing semicolons are bad.Gravatar brain2006-02-191-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3248 e03df62e-2008-0410-955e-edbf42e46eb7
* Server::AddExtendedMode and Server::AddCommand will now throw exceptions ↵Gravatar brain2006-02-191-3/+7
| | | | | | 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
* Sped up disabled commands checkGravatar brain2006-02-151-5/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3222 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed a whole lot of strchr's looking for mode +o where we can do if ↵Gravatar brain2006-02-151-1/+1
| | | | | | *user->oper git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3221 e03df62e-2008-0410-955e-edbf42e46eb7
* - Useless loop removedGravatar w00t2006-02-151-549/+589
| | | | | | | | - 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
* Experimental improved string handling in server linksGravatar brain2006-02-071-12/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3127 e03df62e-2008-0410-955e-edbf42e46eb7
* Now errors when sent SERVER on a non-server portGravatar brain2006-02-071-0/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3119 e03df62e-2008-0410-955e-edbf42e46eb7
* Warning fix.Gravatar brain2006-01-231-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2865 e03df62e-2008-0410-955e-edbf42e46eb7
* Allowed for configuration of maxtargets in <options:maxtargets>Gravatar brain2006-01-221-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2848 e03df62e-2008-0410-955e-edbf42e46eb7
* Updated copyrights in headers etc using perl inplace editGravatar brain2006-01-151-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2795 e03df62e-2008-0410-955e-edbf42e46eb7
* Changed to MAX_DESCRIPTORSGravatar brain2005-12-291-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2700 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed an extremely n00bish mistake involving referencing a global copy of ↵Gravatar brain2005-12-291-2/+0
| | | | | | | | | 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
* Changed from std::map to hash_mapGravatar brain2005-12-281-4/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2686 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed typosGravatar brain2005-12-281-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2685 e03df62e-2008-0410-955e-edbf42e46eb7
* EXPERIMENTAL: Command search function now uses std::map, should be faster (i ↵Gravatar brain2005-12-281-32/+26
| | | | | | hope) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2684 e03df62e-2008-0410-955e-edbf42e46eb7
* Adding hook type checking to event calls to speed them upGravatar brain2005-12-261-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2653 e03df62e-2008-0410-955e-edbf42e46eb7
* Optimized out strcpys that copy empty strings (craq++)Gravatar brain2005-12-221-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2637 e03df62e-2008-0410-955e-edbf42e46eb7
* Updated m_alias to fix bug #92, updated configsGravatar brain2005-12-211-34/+44
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2603 e03df62e-2008-0410-955e-edbf42e46eb7
* Improved m_alias to only capture complete commands and rewrite them (bug #92 ↵Gravatar brain2005-12-211-1/+6
| | | | | | as reported by strike) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2601 e03df62e-2008-0410-955e-edbf42e46eb7
* Added IOHookModule stuff to allow for different modules to hook different portsGravatar brain2005-12-181-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2564 e03df62e-2008-0410-955e-edbf42e46eb7
* Split all commands into seperate files and redid command system to take ↵Gravatar brain2005-12-161-113/+92
| | | | | | classes, not function pointers (function pointers suck ass) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2534 e03df62e-2008-0410-955e-edbf42e46eb7
* Moved serverstats stuff outGravatar brain2005-12-161-4/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2529 e03df62e-2008-0410-955e-edbf42e46eb7
* So many inclusion loops it makes your head spin - forward declaring tons of ↵Gravatar brain2005-12-161-1/+1
| | | | | | classes to fix git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2523 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed some return type craqGravatar brain2005-12-161-2/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2516 e03df62e-2008-0410-955e-edbf42e46eb7
* Moved more command parsing stuff to CommandParserGravatar brain2005-12-161-0/+77
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2514 e03df62e-2008-0410-955e-edbf42e46eb7
* Changed to include its own headerGravatar brain2005-12-161-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2513 e03df62e-2008-0410-955e-edbf42e46eb7
* Moved command_parse functions into class CommandParserGravatar brain2005-12-161-12/+12
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2510 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed some crapGravatar brain2005-12-161-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2506 e03df62e-2008-0410-955e-edbf42e46eb7
* Moved command parsing crap into command_parse.cppGravatar brain2005-12-161-0/+700
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2505 e03df62e-2008-0410-955e-edbf42e46eb7