summaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
AgeCommit message (Collapse)Author
2006-08-09Move tons more stuff into class InspIRCdbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4819 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-09Move clientlist and chanlist into InspIRCd*brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4818 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-09Move fd_ref_table into class InspIRCd*brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4817 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-09ServerConfig extern moved into class InspIRCdbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4808 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-08WHEEEEE!!!!!brain
All of: Write(), WriteTo(), WriteFrom(), WriteServ() are now methods of userrec. Write_NoFormat(), WriteTo_NoFormat(), WriteFrom_NoFormat(), WriteServ_NoFormat() are now std::string-taking overloaded methods of the functions above All modules updated to use new syntax, my fingers hurt :( git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4798 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-07Remove old debugbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4760 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-06Remove trailing spaces from input in irc::ircsepstreambrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4759 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-05Change a loop which uppercases the command to std::transform()brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4723 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-01Comments, add more detail, remove dnsqueue.h include from tons of placesbrain
Remove THREADED_DNS defines from all over the place git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4629 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-28Finish off /WHO (i think it covers everything). Now has a few extra optionsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4581 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-28Tidyupbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4580 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-28Typical, forgot a ;brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4579 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-28Document <options:syntaxhints> and <options:nouserdns>brain
Change syntaxhints to seperate RPL_TEXT (prefix SYNTAX) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4578 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-28Change all references to voodoo numbers (7, 3 etc) to the new bitwise ↵brain
constants for user->registered Change a lot of user->fd > -1 to use the IS_LOCAL() macro git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4569 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-28Make the error more obvious, still has 'not enough params' on the start nowbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4563 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-28Re-order stuff so that users cant get syntax for commands they dont have ↵brain
access to git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4562 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-28Add support for syntax of commands in place of the text 'Not enough ↵brain
parameters' in numeric 461, where supported. To support this each derived class of command_t must set the value of command_t::syntax to a non-empty string. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4561 e03df62e-2008-0410-955e-edbf42e46eb7
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