aboutsummaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
Commit message (Expand)AuthorAgeFilesLines
* Amend OnPostCommand to specify whether the command is loopcalled.•••This restores previous behaviour which was lost when the original line parameter was removed. Gravatar Peter Powell2018-09-111-4/+4
* Implement IRCv3 message tag support.•••Co-authored-by: Attila Molnar <attilamolnar@hush.com> Gravatar Peter Powell2018-08-131-38/+11
* Move message parsing to ProcessBuffer and fix edge cases in it.Gravatar Peter Powell2018-08-101-22/+38
* Split irc::tokenparser::GetToken into GetMiddle and GetTrailing.•••This simplifies the logic of irc::tokenparser considerably and removes all of the magic index guessing that was used previously. Gravatar Peter Powell2018-08-101-3/+3
* Remove the original line parameter of On{Pre,Post}Command.•••In the brave new world of message tags and alternate wire formats this is no longer something that is appropriate to expose. In reality it was only ever used by m_alias which now reconstitutes the command name and parameters into a RFC 1459-style message for whatever it needs to do. Gravatar Peter Powell2018-08-101-5/+5
* Use CommandBase::Params instead of std::vector<std::string>.•••This is presently a typedef but will soon be replaced with a class that encapsulates both tags and parameters. Gravatar Peter Powell2018-07-261-11/+11
* Fix a ton of -Wsign-conversion warnings.Gravatar Peter Powell2017-11-171-1/+1
* Hide User#host and User#dhost and use accessors to modify them.•••This removes the need to invalidate the cache after changing a user's hostname. Gravatar Peter Powell2017-10-281-1/+1
* Move RPL_SYNTAX to 650 to prevent a collision with RPL_TEXT.•••Also move the command name to a parameter so that it is more easily parseable by software. Gravatar Peter Powell2017-09-061-1/+1
* Replace irc::string usage in CommandParser::LoopCall() with irc::insensitive_...Gravatar Attila Molnar2016-08-221-2/+2
* Don't prepend ":<nick>" to raw input logGravatar Attila Molnar2016-03-231-2/+1
* Convert WriteNumeric() calls to pass the parameters of the numeric as method ...Gravatar Attila Molnar2016-02-251-9/+9
* Implement Command::RegisterService()Gravatar Attila Molnar2015-11-231-0/+6
* Merge insp20Gravatar Attila Molnar2015-04-201-1/+16
|\
| * Fix numeric ERR_NOTREGISTERED not containing the user's nickGravatar Attila Molnar2015-01-211-1/+1
| * Always penalize clients executing a command which fails before running the ha...Gravatar Attila Molnar2015-01-121-1/+16
* | Move implementation of Command and CommandBase functions into a source fileGravatar Attila Molnar2015-01-241-0/+28
* | Change type of some associative containers to their flat versions, including ...Gravatar Attila Molnar2014-12-151-1/+1
* | Use TimingSafeCompare() to compare passwords and password hashes (non-hmac only)•••Issue #882 Gravatar Attila Molnar2014-06-281-1/+1
* | Change allocation of InspIRCd::Parser to be physically part of the object con...Gravatar Attila Molnar2014-06-131-1/+1
* | Remove global Commandtable typedefGravatar Attila Molnar2014-06-131-3/+3
* | Change allocation of InspIRCd::stats to be physically part of the object cont...•••While at it, remove "stats" from all field names Gravatar Attila Molnar2014-06-131-1/+1
* | 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 forwa...Gravatar Attila Molnar2014-01-261-1/+3
* | Convert InspIRCd::PassCompare to return bool instead of int.•••The insane behaviour of this method was due to an implementation detail which has since become irrelevent. Gravatar Peter Powell2014-01-251-6/+5
* | 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 au...Gravatar Adam2013-11-121-9/+8
* | Create the CommandBase class from Command•••The Handle() method is not part of CommandBase, making it possible to provide a different Handle() in each class derived from CommandBase Gravatar attilamolnar2013-08-181-2/+6
* | 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.h•••Removed functions: InspIRCd: - Restart() - unused - DoSocketTimeouts() - no implementation exists - AddCommand() - useless wrapper around ModuleManager::AddService() CommandParser: - IsValidCommand() - unused - ProcessParameters() - no implementation exists Gravatar attilamolnar2013-06-181-24/+0
* | 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() changes•••- 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 Gravatar attilamolnar2013-06-121-32/+25
* | 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 o...•••Most of these were detected by cppcheck Gravatar attilamolnar2013-05-161-2/+0
* | Remove #define MAXPARAMETERS and "MAXPARA" 005 tokenGravatar attilamolnar2013-06-011-1/+1
* | CommandParser::ProcessCommand() and ProcessBuffer() cleanup•••- Change return types to void - Use a pointer to the command handler instead of an iterator Gravatar attilamolnar2013-06-011-33/+32
* | 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 types•••The spaces are converted to '_' characters in OPERTYPE for 2.0 servers Issue #533 suggested by @ankitkv Gravatar attilamolnar2013-05-161-1/+1
* | 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 allowe...Gravatar attilamolnar2012-12-151-0/+7
* Change empty string assignments to .clear() or remove them entirely•••Part 2 of ba5c0db795824c3fc1ad48ce332d7bdc440cb77f Gravatar attilamolnar2012-11-281-3/+3
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+18
* Add RAWIO log level which is more verbose than DEBUG•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12646 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-03-191-1/+1