aboutsummaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Change allocation of InspIRCd::Parser to be physically part of the object ↵Gravatar Attila Molnar2014-06-131-1/+1
| | | | | | | | containing it
* | Remove global Commandtable typedefGravatar Attila Molnar2014-06-131-3/+3
| |
* | Change allocation of InspIRCd::stats to be physically part of the object ↵Gravatar Attila Molnar2014-06-131-1/+1
| | | | | | | | | | | | containing it While at it, remove "stats" from all field names
* | Merge insp20Gravatar Attila Molnar2014-04-071-1/+1
|\|
| * Fix snotice about disabled command usage being sent to the wrong snomaskGravatar Attila Molnar2014-04-041-1/+1
| |
| * Improve support for rarely used compilers, EKOPath in this case.Gravatar ChrisTX2013-08-311-1/+1
| |
* | Add ProtocolInterface::BroadcastEncap() and infrastructure for manually ↵Gravatar Attila Molnar2014-01-261-1/+3
| | | | | | | | forwarding ENCAPs
* | Convert InspIRCd::PassCompare to return bool instead of int.Gravatar Peter Powell2014-01-251-6/+5
| | | | | | | | | | The insane behaviour of this method was due to an implementation detail which has since become irrelevent.
* | Stop null checking pointers that are always validGravatar Attila Molnar2014-01-091-1/+1
| |
* | Use WriteNumeric() everywhere we send numerics and include the user's nick ↵Gravatar Adam2013-11-121-9/+8
| | | | | | | | automatically
* | Create the CommandBase class from CommandGravatar attilamolnar2013-08-181-2/+6
| | | | | | | | The Handle() method is not part of CommandBase, making it possible to provide a different Handle() in each class derived from CommandBase
* | Change the syntax of FOREACH macros to be less dumb.Gravatar Adam2013-08-041-2/+2
| |
* | Remove dead code from the InspIRCd and CommandParser classes and typedefs.hGravatar attilamolnar2013-06-181-24/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Removed functions: InspIRCd: - Restart() - unused - DoSocketTimeouts() - no implementation exists - AddCommand() - useless wrapper around ModuleManager::AddService() CommandParser: - IsValidCommand() - unused - ProcessParameters() - no implementation exists
* | Remove TR_END, remove TRANSLATEx() from commands that do not need itGravatar attilamolnar2013-06-131-1/+0
| |
* | Rewrite CommandParser::TranslateUIDs()Gravatar attilamolnar2013-06-131-56/+33
| |
* | Run the OnPostCommand hook from LoopCall()Gravatar attilamolnar2013-06-121-2/+10
| |
* | CommandParser::LoopCall() changesGravatar attilamolnar2013-06-121-32/+25
| | | | | | | | | | | | - Change function to be static, return a bool - Do not filter duplicates when there are 2 lists (JOIN) - Remove validation of 'extra' parameter, caller must pass either a valid index or -1
* | Change command name parameter of OnPostCommand to be a Command*Gravatar attilamolnar2013-06-121-1/+1
| |
* | Merge insp20Gravatar attilamolnar2013-06-061-2/+0
|\|
| * Remove unused variables, avoid copies where possible, check empty() instead ↵Gravatar attilamolnar2013-05-161-2/+0
| | | | | | | | | | | | of size() == 0 Most of these were detected by cppcheck
* | Remove #define MAXPARAMETERS and "MAXPARA" 005 tokenGravatar attilamolnar2013-06-011-1/+1
| |
* | CommandParser::ProcessCommand() and ProcessBuffer() cleanupGravatar attilamolnar2013-06-011-33/+32
| | | | | | | | | | - Change return types to void - Use a pointer to the command handler instead of an iterator
* | Improve command parser logic when there are more params than Command::max_paramsGravatar attilamolnar2013-06-011-22/+13
| |
* | Remove (non-functional) total_bytes counter from CommandGravatar attilamolnar2013-06-011-1/+0
| |
* | Allow spaces (and more) in oper typesGravatar attilamolnar2013-05-161-1/+1
| | | | | | | | | | The spaces are converted to '_' characters in OPERTYPE for 2.0 servers Issue #533 suggested by @ankitkv
* | Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-121-1/+1
| |
* | Replace IS_AWAY() and IS_OPER() macros with User::IsAway() and User::IsOper()Gravatar attilamolnar2013-04-101-1/+1
|/
* Add a flag to Command that controls whether an empty last parameter is ↵Gravatar attilamolnar2012-12-151-0/+7
| | | | allowed or not
* Change empty string assignments to .clear() or remove them entirelyGravatar attilamolnar2012-11-281-3/+3
| | | | Part 2 of ba5c0db795824c3fc1ad48ce332d7bdc440cb77f
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+18
|
* Add RAWIO log level which is more verbose than DEBUGGravatar danieldg2010-03-191-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12646 e03df62e-2008-0410-955e-edbf42e46eb7
* Extbans can be VF_OPTCOMMON as they do not desync on module add/removeGravatar danieldg2010-01-191-13/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12303 e03df62e-2008-0410-955e-edbf42e46eb7
* PreCommand/PostCommand are local-only hooksGravatar danieldg2010-01-181-5/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12291 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix signdedness error in LoopCallGravatar danieldg2010-01-161-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12268 e03df62e-2008-0410-955e-edbf42e46eb7
* Allow maxtargets to be bypassed in LoopCall for JOINGravatar danieldg2010-01-141-55/+10
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12255 e03df62e-2008-0410-955e-edbf42e46eb7
* ...because every now and again, i have to do a massive commit.Gravatar brain2010-01-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
* Add Inspircd::AddServicesGravatar danieldg2009-11-151-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12135 e03df62e-2008-0410-955e-edbf42e46eb7
* Add fine-grained command flood controlsGravatar danieldg2009-11-111-1/+1
| | | | | | | This reintrouces "Excess Flood" quits for those that prefer it to fakelag, and allows the maximum command rate to be set in the connect block. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12093 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixes found by removing User inheritance from StreamSocketGravatar danieldg2009-10-251-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11975 e03df62e-2008-0410-955e-edbf42e46eb7
* Change User::oper to an OperInfo referenceGravatar danieldg2009-10-211-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11945 e03df62e-2008-0410-955e-edbf42e46eb7
* Move all local-only fields to LocalUserGravatar danieldg2009-10-211-5/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11944 e03df62e-2008-0410-955e-edbf42e46eb7
* Add a setting to <connect> allowing the threshold for activation of the ↵Gravatar peavey2009-10-191-1/+1
| | | | | | penalty system to be set in the configuration, or be disabled by setting it to 0. [jackmcbarn] git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11922 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove Command and ModeHandler objects in their destructors; fixes possible ↵Gravatar danieldg2009-10-131-17/+7
| | | | | | pointer leak if a module was not careful when triggering exceptions in its constructor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11872 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove InspIRCd* parameters and fieldsGravatar danieldg2009-09-261-5/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
* Create StreamSocket for IO hooking implementationGravatar danieldg2009-09-211-32/+4
| | | | | | | | | | | | | | Fixes the SSL SendQ bug Removes duplicate code between User and BufferedSocket Simplify SSL module API Simplify EventHandler API (Readable/Writeable moved to SE) Add hook for culled objects to invoke callbacks prior to destructor Replace SocketCull with GlobalCull now that sockets can close themselves Shorten common case of user read/parse/write path: User::Write is now zero-copy up to syscall/SSL invocation User::Read has only two copy/scan passes from read() to ProcessCommand git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11752 e03df62e-2008-0410-955e-edbf42e46eb7
* Properly spacify opertypes in error messages. Patch by dKingstonGravatar special2009-09-141-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11724 e03df62e-2008-0410-955e-edbf42e46eb7
* Change cmd_*.so to use the Module object APIGravatar danieldg2009-09-031-155/+3
| | | | | | | | | | | | | | Create Module* objects for each command, and load them like modules. This unifies the external API for modules. Library directory is now deprecated: all modules are located in a single module directory. Header files for each command are no longer needed; remove. This also fixes two potential segfaults in m_spanningtree. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11668 e03df62e-2008-0410-955e-edbf42e46eb7
* ModResult conversion: Change return type of all module functionsGravatar danieldg2009-09-021-13/+12
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11634 e03df62e-2008-0410-955e-edbf42e46eb7
* Add Module* creator to Command and ModeHandlerGravatar danieldg2009-09-021-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11631 e03df62e-2008-0410-955e-edbf42e46eb7
* Valgrind cleanup: finish destructor creationGravatar danieldg2009-09-021-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11615 e03df62e-2008-0410-955e-edbf42e46eb7