aboutsummaryrefslogtreecommitdiff
path: root/include/command_parse.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'v2.0.25' into master.Gravatar Peter Powell2017-11-121-1/+1
|\
* | Replace irc::string usage in CommandParser::LoopCall() with ↵Gravatar Attila Molnar2016-08-221-1/+1
| | | | | | | | irc::insensitive_swo set
* | Remove global Commandtable typedefGravatar Attila Molnar2014-06-131-2/+2
| |
* | Make CommandParser::cmdlist privateGravatar Attila Molnar2014-06-131-1/+1
| |
* | Add CommandParser::GetCommands() and typedef CommandMap and use it instead ↵Gravatar Attila Molnar2014-06-131-0/+8
| | | | | | | | of directly accessing cmdlist
* | Add ProtocolInterface::BroadcastEncap() and infrastructure for manually ↵Gravatar Attila Molnar2014-01-261-1/+3
| | | | | | | | forwarding ENCAPs
* | Create the CommandBase class from CommandGravatar attilamolnar2013-08-181-2/+2
| | | | | | | | The Handle() method is not part of CommandBase, making it possible to provide a different Handle() in each class derived from CommandBase
* | Fix Doxygen comments.Gravatar Peter Powell2013-06-211-0/+1
| |
* | Remove dead code from the InspIRCd and CommandParser classes and typedefs.hGravatar attilamolnar2013-06-181-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Removed functions: InspIRCd: - Restart() - unused - DoSocketTimeouts() - no implementation exists - AddCommand() - useless wrapper around ModuleManager::AddService() CommandParser: - IsValidCommand() - unused - ProcessParameters() - no implementation exists
* | Rewrite CommandParser::TranslateUIDs()Gravatar attilamolnar2013-06-131-10/+9
| |
* | Run the OnPostCommand hook from LoopCall()Gravatar attilamolnar2013-06-121-2/+6
| |
* | CommandParser::LoopCall() changesGravatar attilamolnar2013-06-121-13/+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
* | Merge insp20Gravatar attilamolnar2013-06-061-10/+0
|\|
| * Remove unused variables, avoid copies where possible, check empty() instead ↵Gravatar attilamolnar2013-05-161-10/+0
| | | | | | | | | | | | of size() == 0 Most of these were detected by cppcheck
* | CommandParser::ProcessCommand() and ProcessBuffer() cleanupGravatar attilamolnar2013-06-011-2/+2
| | | | | | | | | | - Change return types to void - Use a pointer to the command handler instead of an iterator
* | Tidy up source files:Gravatar Peter Powell2013-04-121-4/+1
|/ | | | | | - Use #pragma once instead of include guards. - Move header files in src/modules to include/modules. - Fixed various spacing issues.
* Fix Doxygen syntax errors.Gravatar Peter Powell2012-07-051-3/+1
|
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+17
|
* Fixes for bug #12Gravatar Justin Crawford2012-04-141-2/+2
|
* PreCommand/PostCommand are local-only hooksGravatar danieldg2010-01-181-8/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12291 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix signdedness error in LoopCallGravatar danieldg2010-01-161-1/+1
| | | | 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-24/+2
| | | | 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
* Remove VF_SERVICEPROVIDER, prevent heap allocation of ConfigReaderGravatar danieldg2009-10-181-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11904 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove Command and ModeHandler objects in their destructors; fixes possible ↵Gravatar danieldg2009-10-131-10/+5
| | | | | | 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/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
* Change cmd_*.so to use the Module object APIGravatar danieldg2009-09-031-54/+1
| | | | | | | | | | | | | | 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
* 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: Add RemoveRFCCommands() to dlclose() and delete the core ↵Gravatar danieldg2009-09-021-0/+4
| | | | | | commands git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11613 e03df62e-2008-0410-955e-edbf42e46eb7
* Include explicit routing information in Command, will replace CMD_LOCALONLY ↵Gravatar danieldg2009-09-021-2/+10
| | | | | | return value git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11601 e03df62e-2008-0410-955e-edbf42e46eb7
* Replace std::deque with std::vector in spanningtree and related modulesGravatar danieldg2009-09-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11593 e03df62e-2008-0410-955e-edbf42e46eb7
* rollback r11326, we're going to make vc9 the officially supported windows ↵Gravatar peavey2009-04-231-1/+1
| | | | | | build methods since the few of us doing win dev can't keep up maintaining the others. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11327 e03df62e-2008-0410-955e-edbf42e46eb7
* Heres the beef so farGravatar brain2009-04-231-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11326 e03df62e-2008-0410-955e-edbf42e46eb7
* Update all wiki links to point to the new wiki. This was done automatically ↵Gravatar psychon2009-03-151-1/+1
| | | | | | | | | with the following command, only .Makefile.inc got some indent fixups by hand. for file in $(find -type f -and -not -path '*/.svn/*' -and -not -name '*.so') ; do sed -e 's#http://www.inspircd.org/wiki#http://wiki.inspircd.org#' -e 's#http://wiki.inspircd.org/index.php/#http://wiki.inspircd.org/#' -i $file ; done git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11223 e03df62e-2008-0410-955e-edbf42e46eb7
* Include explicit parameter list in ProtocolInterface::SendModeGravatar danieldg2009-03-071-1/+1
| | | | | | | Also leave the strings split into deque, there's no need to pack it into a string just to unpack it during the translate. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11181 e03df62e-2008-0410-955e-edbf42e46eb7
* Construct explicit parameter type list for MODE parametersGravatar danieldg2009-03-061-0/+2
| | | | | | | | | | | | Previously, we used TR_SPACENICKLIST on the parameters. This worked only because usually, if anything in the list parsed as a nick, then it was a nick. However, some modes like +k and +g allow free-form text, which could also resolve as a nick. Add extra parameters to allow modes to specify their TranslateType, defaulting to TR_TEXT. This fixes bug #757, found by Taros git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11180 e03df62e-2008-0410-955e-edbf42e46eb7
* Nuke trailing spacesGravatar peavey2009-02-141-2/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11105 e03df62e-2008-0410-955e-edbf42e46eb7
* Update copyrights for 2009.Gravatar w00t2009-01-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix naming convention to be consistant. (cmd_ -> Command)Gravatar w00t2008-12-151-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10891 e03df62e-2008-0410-955e-edbf42e46eb7
* This was never supposed to be invoked on /rehash, only startup.. so move it ↵Gravatar w00t2008-11-021-4/+1
| | | | | | to startup only. Also remove (redundant) user arg. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10792 e03df62e-2008-0410-955e-edbf42e46eb7
* Change the value of number of secs in a year to be 31557600 for Duration() ↵Gravatar brain2008-06-211-2/+2
| | | | | | with 'y' value. This is 365.25 days slightly more accurate than 365 days. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9930 e03df62e-2008-0410-955e-edbf42e46eb7
* m_abbreviation completed. :)Gravatar brain2008-06-061-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9845 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix unused HandleServer to use new system too, and update comments to match apiGravatar brain2008-05-041-2/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9609 e03df62e-2008-0410-955e-edbf42e46eb7
* Conversion of command handler params from "const char* const* parameters, ↵Gravatar brain2008-05-041-7/+7
| | | | | | | | | | int pcnt" to "const std::vector<std::string>& parameters". All of core is converted, but cant test it till the modules are converted. IMPORTANT: The mode parser public calls have had to be tweaked a bit to also use the string vector. Note that this makes a LOT of our core a bit messy and paves the way to convert a lot of stuff from the mess of .c_str() calls to using std::string params directly. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9608 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix RemoveCommands to remove all commands (this function had some really odd ↵Gravatar brain2008-04-201-2/+1
| | | | | | removal logic?) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9554 e03df62e-2008-0410-955e-edbf42e46eb7
* Wheee, mass commit! this adds const stafety, throwing a compile error if ↵Gravatar brain2008-02-201-4/+4
| | | | | | | | | anyone does: "parameters[n] = blahvar;" in a command handler etc. where they REALLY SHOULD NOT fuck with the value and should copy the pointer. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8971 e03df62e-2008-0410-955e-edbf42e46eb7
* Slight API tweak. Change Command to take char * instead of char in it's ↵Gravatar w00t2008-02-131-1/+1
| | | | | | constructor, this avoids confusion/generates a compile error if someone mixes up flags with number of params, instead of working but not working as expected in a weird manner. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8918 e03df62e-2008-0410-955e-edbf42e46eb7
* Clear up header insanityGravatar w00t2008-02-031-7/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8808 e03df62e-2008-0410-955e-edbf42e46eb7
* Move some stuff to usermanager, remove a little header insanity, remove ↵Gravatar w00t2008-02-021-1/+0
| | | | | | trace because it's still less useful than a chocolate fireman. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8790 e03df62e-2008-0410-955e-edbf42e46eb7
* Header update: 2007 -> 2008Gravatar w00t2008-01-101-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7