]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
class command_t -> class Command. Whey :D
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 15 Oct 2007 20:55:55 +0000 (20:55 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 15 Oct 2007 20:55:55 +0000 (20:55 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8203 e03df62e-2008-0410-955e-edbf42e46eb7

171 files changed:
include/command_parse.h
include/commands/cmd_admin.h
include/commands/cmd_away.h
include/commands/cmd_clearcache.h
include/commands/cmd_commands.h
include/commands/cmd_connect.h
include/commands/cmd_die.h
include/commands/cmd_eline.h
include/commands/cmd_gline.h
include/commands/cmd_info.h
include/commands/cmd_invite.h
include/commands/cmd_ison.h
include/commands/cmd_join.h
include/commands/cmd_kick.h
include/commands/cmd_kill.h
include/commands/cmd_kline.h
include/commands/cmd_links.h
include/commands/cmd_list.h
include/commands/cmd_loadmodule.h
include/commands/cmd_lusers.h
include/commands/cmd_map.h
include/commands/cmd_mode.h
include/commands/cmd_modules.h
include/commands/cmd_motd.h
include/commands/cmd_names.h
include/commands/cmd_nick.h
include/commands/cmd_notice.h
include/commands/cmd_oper.h
include/commands/cmd_part.h
include/commands/cmd_pass.h
include/commands/cmd_ping.h
include/commands/cmd_pong.h
include/commands/cmd_privmsg.h
include/commands/cmd_qline.h
include/commands/cmd_quit.h
include/commands/cmd_rehash.h
include/commands/cmd_reloadmodule.h
include/commands/cmd_restart.h
include/commands/cmd_rules.h
include/commands/cmd_server.h
include/commands/cmd_squit.h
include/commands/cmd_stats.h
include/commands/cmd_time.h
include/commands/cmd_topic.h
include/commands/cmd_trace.h
include/commands/cmd_unloadmodule.h
include/commands/cmd_user.h
include/commands/cmd_userhost.h
include/commands/cmd_version.h
include/commands/cmd_wallops.h
include/commands/cmd_who.h
include/commands/cmd_whois.h
include/commands/cmd_whowas.h
include/commands/cmd_zline.h
include/ctables.h
include/inspircd.h
src/cmd_admin.cpp
src/cmd_away.cpp
src/cmd_clearcache.cpp
src/cmd_commands.cpp
src/cmd_connect.cpp
src/cmd_die.cpp
src/cmd_eline.cpp
src/cmd_gline.cpp
src/cmd_info.cpp
src/cmd_invite.cpp
src/cmd_ison.cpp
src/cmd_join.cpp
src/cmd_kick.cpp
src/cmd_kill.cpp
src/cmd_kline.cpp
src/cmd_links.cpp
src/cmd_list.cpp
src/cmd_loadmodule.cpp
src/cmd_lusers.cpp
src/cmd_map.cpp
src/cmd_mode.cpp
src/cmd_modules.cpp
src/cmd_motd.cpp
src/cmd_names.cpp
src/cmd_nick.cpp
src/cmd_notice.cpp
src/cmd_oper.cpp
src/cmd_part.cpp
src/cmd_pass.cpp
src/cmd_ping.cpp
src/cmd_pong.cpp
src/cmd_privmsg.cpp
src/cmd_qline.cpp
src/cmd_quit.cpp
src/cmd_rehash.cpp
src/cmd_reloadmodule.cpp
src/cmd_restart.cpp
src/cmd_rules.cpp
src/cmd_server.cpp
src/cmd_squit.cpp
src/cmd_stats.cpp
src/cmd_time.cpp
src/cmd_topic.cpp
src/cmd_trace.cpp
src/cmd_unloadmodule.cpp
src/cmd_user.cpp
src/cmd_userhost.cpp
src/cmd_version.cpp
src/cmd_wallops.cpp
src/cmd_who.cpp
src/cmd_whois.cpp
src/cmd_whowas.cpp
src/cmd_zline.cpp
src/command_parse.cpp
src/configreader.cpp
src/modules.cpp
src/modules/extra/m_sqloper.cpp
src/modules/extra/m_ssl_oper_cert.cpp
src/modules/extra/m_sslinfo.cpp
src/modules/m_alltime.cpp
src/modules/m_auditorium.cpp
src/modules/m_cban.cpp
src/modules/m_cgiirc.cpp
src/modules/m_check.cpp
src/modules/m_chghost.cpp
src/modules/m_chgident.cpp
src/modules/m_chgname.cpp
src/modules/m_clones.cpp
src/modules/m_close.cpp
src/modules/m_customtitle.cpp
src/modules/m_cycle.cpp
src/modules/m_dccallow.cpp
src/modules/m_devoice.cpp
src/modules/m_filter.h
src/modules/m_globalload.cpp
src/modules/m_globops.cpp
src/modules/m_helpop.cpp
src/modules/m_invisible.cpp
src/modules/m_jumpserver.cpp
src/modules/m_knock.cpp
src/modules/m_lockserv.cpp
src/modules/m_nicklock.cpp
src/modules/m_oper_hash.cpp
src/modules/m_operlog.cpp
src/modules/m_opermotd.cpp
src/modules/m_randquote.cpp
src/modules/m_remove.cpp
src/modules/m_sajoin.cpp
src/modules/m_samode.cpp
src/modules/m_sanick.cpp
src/modules/m_sapart.cpp
src/modules/m_saquit.cpp
src/modules/m_sethost.cpp
src/modules/m_setident.cpp
src/modules/m_setidle.cpp
src/modules/m_setname.cpp
src/modules/m_silence.cpp
src/modules/m_silence_ext.cpp
src/modules/m_spanningtree/postcommand.cpp
src/modules/m_spanningtree/rconnect.cpp
src/modules/m_spanningtree/rconnect.h
src/modules/m_spanningtree/rsquit.cpp
src/modules/m_spanningtree/rsquit.h
src/modules/m_spy.cpp
src/modules/m_svshold.cpp
src/modules/m_swhois.cpp
src/modules/m_taxonomy.cpp
src/modules/m_testcommand.cpp
src/modules/m_timedbans.cpp
src/modules/m_tline.cpp
src/modules/m_uninvite.cpp
src/modules/m_userip.cpp
src/modules/m_vhost.cpp
src/modules/m_watch.cpp
src/users.cpp

index 4e25d100487686edb03672b1463f3862ea4cffd1..be3ea89ff3ca870e7dbeaeb747d1ae3a6234ed95 100644 (file)
@@ -77,13 +77,13 @@ class CoreExport CommandParser : public classbase
        /** Removes a command if the sources match. Used as a helper for
         *  safe hash_map delete while iter in RemoveCommands(const char* source).
         */
-       void RemoveCommand(nspace::hash_map<std::string,command_t*>::iterator safei, const char* source);
+       void RemoveCommand(nspace::hash_map<std::string,Command*>::iterator safei, const char* source);
 
 
  public:
-       /** Command list, a hash_map of command names to command_t*
+       /** Command list, a hash_map of command names to Command*
         */
-       command_table cmdlist;
+       Commandable cmdlist;
 
        /** Reload a core command.
         * This will only reload commands implemented by the core,
@@ -117,7 +117,7 @@ class CoreExport CommandParser : public classbase
         * @param commandname The command required. Always use uppercase for this parameter.
         * @return a pointer to the command handler, or NULL
         */
-       command_t* GetHandler(const std::string &commandname);
+       Command* GetHandler(const std::string &commandname);
 
        /** This function returns true if a command is valid with the given number of parameters and user.
         * @param commandname The command name to check
@@ -150,7 +150,7 @@ class CoreExport CommandParser : public classbase
         * @return This function will return 1 when there are no more parameters to process. When this occurs, its
         * caller should return without doing anything, otherwise it should continue into its main section of code.
         */
-       int LoopCall(userrec* user, command_t* CommandObj, const char** parameters, int pcnt, unsigned int splithere, unsigned int extra);
+       int LoopCall(userrec* user, Command* CommandObj, const char** parameters, int pcnt, unsigned int splithere, unsigned int extra);
 
        /** LoopCall is used to call a command classes handler repeatedly based on the contents of a comma seperated list.
         * There are two overriden versions of this method, one of which takes two potential lists and the other takes one.
@@ -173,7 +173,7 @@ class CoreExport CommandParser : public classbase
         * @return This function will return 1 when there are no more parameters to process. When this occurs, its
         * caller should return without doing anything, otherwise it should continue into its main section of code.
         */
-       int LoopCall(userrec* user, command_t* CommandObj, const char** parameters, int pcnt, unsigned int splithere);
+       int LoopCall(userrec* user, Command* CommandObj, const char** parameters, int pcnt, unsigned int splithere);
 
        /** Take a raw input buffer from a recvq, and process it on behalf of a user.
         * @param buffer The buffer line to process
@@ -188,13 +188,13 @@ class CoreExport CommandParser : public classbase
        bool RemoveCommands(const char* source);
 
        /** Add a new command to the commands hash
-        * @param f The new command_t to add to the list
+        * @param f The new Command to add to the list
         * @param so_handle The handle to the shared object where the command can be found.
         * Only core commands loaded via cmd_*.so files should set this parameter to anything
         * meaningful. Module authors should leave this parameter at its default of NULL.
         * @return True if the command was added
         */
-       bool CreateCommand(command_t *f, void* so_handle = NULL);
+       bool CreateCommand(Command *f, void* so_handle = NULL);
 
        /** Insert the default RFC1459 commands into the command hash.
         * Ignore any already loaded commands.
@@ -215,12 +215,12 @@ class CoreExport CommandParser : public classbase
 /** Command handler class for the RELOAD command.
  * A command cant really reload itself, so this has to be in here.
  */
-class cmd_reload : public command_t
+class cmd_reload : public Command
 {
  public:
        /** Standard constructor
         */
-       cmd_reload (InspIRCd* Instance) : command_t(Instance,"RELOAD",'o',1) { syntax = "<core-command>"; }
+       cmd_reload (InspIRCd* Instance) : Command(Instance,"RELOAD",'o',1) { syntax = "<core-command>"; }
        /** Handle RELOAD
         */
        CmdResult Handle(const char** parameters, int pcnt, userrec *user);
index c1f90312b40792bae36b610aa73db1c6a5d2fe1c..049d230b06e1e24111ce06d8316b2acc4c6207dc 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_admin : public command_t
+class cmd_admin : public Command
 {
  public:
        /** Constructor for admin.
         */
-       cmd_admin (InspIRCd* Instance) : command_t(Instance,"ADMIN",0,0) { syntax = "[<servername>]"; }
+       cmd_admin (InspIRCd* Instance) : Command(Instance,"ADMIN",0,0) { syntax = "[<servername>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 73b75fd28d55ca1474cf243870d433f2036eadd7..269c548aaf52cd4b51047b2fc5570befee9aa69b 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_away : public command_t
+class cmd_away : public Command
 {
  public:
        /** Constructor for away.
         */
-       cmd_away (InspIRCd* Instance) : command_t(Instance,"AWAY",0,0) { syntax = "[<message>]"; }
+       cmd_away (InspIRCd* Instance) : Command(Instance,"AWAY",0,0) { syntax = "[<message>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 10cd20994e963462282ac28744789f4da58cf2ed..b89029a30f8801879a3ffffe28469734bc5c0cad 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_clearcache : public command_t
+class cmd_clearcache : public Command
 {
  public:
        /** Constructor for clearcache.
         */
-       cmd_clearcache (InspIRCd* Instance) : command_t(Instance,"CLEARCACHE",'o',0) { }
+       cmd_clearcache (InspIRCd* Instance) : Command(Instance,"CLEARCACHE",'o',0) { }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index c7206b6577b0b406db07f910dbaed37884161856..a796d4ebd1ce38332c74a11fd3af82fb119528a1 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_commands : public command_t
+class cmd_commands : public Command
 {
  public:
        /** Constructor for commands.
         */
-       cmd_commands (InspIRCd* Instance) : command_t(Instance,"COMMANDS",0,0) { }
+       cmd_commands (InspIRCd* Instance) : Command(Instance,"COMMANDS",0,0) { }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 4cb3d79924eb5136217225a5e0b3c366ff0980f2..b621cab77a7deefdc6d3da48ad2a6dcf7377eaaf 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_connect : public command_t
+class cmd_connect : public Command
 {
  public:
        /** Constructor for connect.
         */
-       cmd_connect (InspIRCd* Instance) : command_t(Instance,"CONNECT",'o',1) { syntax = "<servername> [<remote-server>]"; }
+       cmd_connect (InspIRCd* Instance) : Command(Instance,"CONNECT",'o',1) { syntax = "<servername> [<remote-server>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index f74ea15854b4238eb74659816578e84538db1c8f..cae2637e932bfac86c21810f50ab32e942ba5a81 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_die : public command_t
+class cmd_die : public Command
 {
  public:
        /** Constructor for die.
         */
-       cmd_die (InspIRCd* Instance) : command_t(Instance,"DIE",'o',1) { syntax = "<password>"; }
+       cmd_die (InspIRCd* Instance) : Command(Instance,"DIE",'o',1) { syntax = "<password>"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 1b31431e3e952dad287696d6a42a24761f5ea759..36b22ce79dd3f5fd65ba18f03cec11aa3c873ea9 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_eline : public command_t
+class cmd_eline : public Command
 {
  public:
        /** Constructor for eline.
         */
-       cmd_eline (InspIRCd* Instance) : command_t(Instance,"ELINE",'o',1) { syntax = "<ident@host> [<duration> :<reason>]"; }
+       cmd_eline (InspIRCd* Instance) : Command(Instance,"ELINE",'o',1) { syntax = "<ident@host> [<duration> :<reason>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 906b1c7843cceddb2b07659925a3399a42cd7f92..caf703009796de6e7f0b29aba8043bc58847f2ae 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_gline : public command_t
+class cmd_gline : public Command
 {
  public:
        /** Constructor for gline.
         */
-       cmd_gline (InspIRCd* Instance) : command_t(Instance,"GLINE",'o',1) { syntax = "<ident@host> [<duration> :<reason>]"; }
+       cmd_gline (InspIRCd* Instance) : Command(Instance,"GLINE",'o',1) { syntax = "<ident@host> [<duration> :<reason>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 9627112d696a7b0f2428441c1a3e79d1903ebb2d..c84a03adfbbcd4d349f328ff1f72f5dff0551b79 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_info : public command_t
+class cmd_info : public Command
 {
  public:
        /** Constructor for info.
         */
-       cmd_info (InspIRCd* Instance) : command_t(Instance,"INFO",0,0) { syntax = "[<servermask>]"; }
+       cmd_info (InspIRCd* Instance) : Command(Instance,"INFO",0,0) { syntax = "[<servermask>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 3be048ea20f318283c58f66b843918cc114260a2..95391e829a5b05d18887da91d314269de49be343 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_invite : public command_t
+class cmd_invite : public Command
 {
  public:
        /** Constructor for invite.
         */
-       cmd_invite (InspIRCd* Instance) : command_t(Instance,"INVITE",0,0) { syntax = "[<nick> <channel>]"; }
+       cmd_invite (InspIRCd* Instance) : Command(Instance,"INVITE",0,0) { syntax = "[<nick> <channel>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 4e64ec91b59e958995802da626e4068d44e98202..3b914d62e5b07824a9ad294304d8a392883080db 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_ison : public command_t
+class cmd_ison : public Command
 {
  public:
        /** Constructor for ison.
         */
-       cmd_ison (InspIRCd* Instance) : command_t(Instance,"ISON",0,0) { syntax = "<nick> {nick}"; }
+       cmd_ison (InspIRCd* Instance) : Command(Instance,"ISON",0,0) { syntax = "<nick> {nick}"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 6981d458b7710798878b7ad2b5dcab390b76c0e1..cf678e4eac4224f324e60218a043fa668e709ea8 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_join : public command_t
+class cmd_join : public Command
 {
  public:
        /** Constructor for join.
         */
-       cmd_join (InspIRCd* Instance) : command_t(Instance,"JOIN",0,1) { syntax = "<channel>{,<channel>} {<key>{,<key>}}"; }
+       cmd_join (InspIRCd* Instance) : Command(Instance,"JOIN",0,1) { syntax = "<channel>{,<channel>} {<key>{,<key>}}"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index acd177b4422a1b2863edf8c5450a116f33e08675..3a58d4203f3f17fa93cc65b82b08f05b10dfa9ca 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_kick : public command_t
+class cmd_kick : public Command
 {
  public:
        /** Constructor for kick.
         */
-       cmd_kick (InspIRCd* Instance) : command_t(Instance,"KICK",0,2) { syntax = "<channel> <nick>{,<nick>} [<reason>]"; }
+       cmd_kick (InspIRCd* Instance) : Command(Instance,"KICK",0,2) { syntax = "<channel> <nick>{,<nick>} [<reason>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 7a3ae530450fe3b7a37663a3ecb34a0f8ba75808..1e1835f0091bfc13e17229eec123af85adfd1b58 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_kill : public command_t
+class cmd_kill : public Command
 {
  public:
        /** Constructor for kill.
         */
-       cmd_kill (InspIRCd* Instance) : command_t(Instance,"KILL",'o',2) { syntax = "<nickname> <reason>"; }
+       cmd_kill (InspIRCd* Instance) : Command(Instance,"KILL",'o',2) { syntax = "<nickname> <reason>"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 3ce7d34e5f5b179ead196298811b29c65e15c914..edaa8a8bc7d6f16019e173defe63b316f48a7398 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_kline : public command_t
+class cmd_kline : public Command
 {
  public:
        /** Constructor for kline.
         */
-       cmd_kline (InspIRCd* Instance) : command_t(Instance,"KLINE",'o',1) { syntax = "<ident@host> [<duration> :<reason>]"; }
+       cmd_kline (InspIRCd* Instance) : Command(Instance,"KLINE",'o',1) { syntax = "<ident@host> [<duration> :<reason>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 260ba60fb156e27c5840bf38d3d9d656a3b93687..74b6164011ee60570e8454e3ded34c9e7d15fb75 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_links : public command_t
+class cmd_links : public Command
 {
  public:
        /** Constructor for links.
         */
-       cmd_links (InspIRCd* Instance) : command_t(Instance,"LINKS",0,0) { }
+       cmd_links (InspIRCd* Instance) : Command(Instance,"LINKS",0,0) { }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 5395b3180c2ac7f36772b2a205aa8ba9f3f91b81..f99111fa0fb61fe88282e34ec00e5fd4fa34cb0c 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_list : public command_t
+class cmd_list : public Command
 {
  public:
        /** Constructor for list.
         */
-       cmd_list (InspIRCd* Instance) : command_t(Instance,"LIST",0,0) { }
+       cmd_list (InspIRCd* Instance) : Command(Instance,"LIST",0,0) { }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 19de8b988c9eecc9c3715c69d8e0f40f77a58d47..4288eb4c6e6805464abc9aabe1de4c567b7f6dd7 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_loadmodule : public command_t
+class cmd_loadmodule : public Command
 {
  public:
        /** Constructor for loadmodule.
         */
-       cmd_loadmodule (InspIRCd* Instance) : command_t(Instance,"LOADMODULE",'o',1) { syntax = "<modulename>"; }
+       cmd_loadmodule (InspIRCd* Instance) : Command(Instance,"LOADMODULE",'o',1) { syntax = "<modulename>"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index e257899c0af704e36c7e0e59ffd4ca26382289f6..76ebf567460561e3ab3bd319597fecfeda02aca7 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_lusers : public command_t
+class cmd_lusers : public Command
 {
  public:
        /** Constructor for lusers.
         */
-       cmd_lusers (InspIRCd* Instance) : command_t(Instance,"LUSERS",0,0) { }
+       cmd_lusers (InspIRCd* Instance) : Command(Instance,"LUSERS",0,0) { }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 961e917539a9b26cf1e544da1546b3db731d60a3..1ae324309c1e10e88cd57f77198858437ab7fab6 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_map : public command_t
+class cmd_map : public Command
 {
  public:
        /** Constructor for map.
         */
-       cmd_map (InspIRCd* Instance) : command_t(Instance,"MAP",0,0) { }
+       cmd_map (InspIRCd* Instance) : Command(Instance,"MAP",0,0) { }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 3d6c728405f4dc1eb4c5cc8fe827e9d439d276d6..9231f2c611ecacd9949fa209cf1e65eb0ebd0d67 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_mode : public command_t
+class cmd_mode : public Command
 {
  public:
        /** Constructor for mode.
         */
-       cmd_mode (InspIRCd* Instance) : command_t(Instance,"MODE",0,1) { syntax = "<target> <modes> {<mode-parameters>}"; }
+       cmd_mode (InspIRCd* Instance) : Command(Instance,"MODE",0,1) { syntax = "<target> <modes> {<mode-parameters>}"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 7d2657416ef039720eac9a120409c4b08ddfdd7f..73a6074d1ff2f07cbdcdc06875c683f91027e358 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_modules : public command_t
+class cmd_modules : public Command
 {
  public:
        /** Constructor for modules.
         */
-       cmd_modules (InspIRCd* Instance) : command_t(Instance,"MODULES",0,0) { syntax = "[debug]"; }
+       cmd_modules (InspIRCd* Instance) : Command(Instance,"MODULES",0,0) { syntax = "[debug]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index c58599938ec6d6af4bb21859b120a88aab41b03d..e6f5092b241269f8c5ec24fccb62a81a88d8b780 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_motd : public command_t
+class cmd_motd : public Command
 {
  public:
        /** Constructor for motd.
         */
-       cmd_motd (InspIRCd* Instance) : command_t(Instance,"MOTD",0,0) { syntax = "[<servername>]"; }
+       cmd_motd (InspIRCd* Instance) : Command(Instance,"MOTD",0,0) { syntax = "[<servername>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 577e49e348a9d34dbbd21bda195b099c62b9e4fd..b65fdeda801d40c115f9f15025b1359dfc96d433 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_names : public command_t
+class cmd_names : public Command
 {
  public:
        /** Constructor for names.
         */
-       cmd_names (InspIRCd* Instance) : command_t(Instance,"NAMES",0,0) { syntax = "{<channel>{,<channel>}}"; }
+       cmd_names (InspIRCd* Instance) : Command(Instance,"NAMES",0,0) { syntax = "{<channel>{,<channel>}}"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 6b361c9c0a1080f61cc12aae96b995aeb1c44b60..849b59c224f8ed5c94de75ad647e8a29a22c7792 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_nick : public command_t
+class cmd_nick : public Command
 {
        bool allowinvalid;
  public:
        /** Constructor for nick.
         */
-       cmd_nick (InspIRCd* Instance) : command_t(Instance,"NICK",0,1,true), allowinvalid(false) { syntax = "<newnick>"; }
+       cmd_nick (InspIRCd* Instance) : Command(Instance,"NICK",0,1,true), allowinvalid(false) { syntax = "<newnick>"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 8ae576ee2b33af0151f9c7ee689b304fa63eae2d..20c34b6bfc7299bfcf0ccbdf9f7ddc3fe1e969c5 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_notice : public command_t
+class cmd_notice : public Command
 {
  public:
        /** Constructor for notice.
         */
-       cmd_notice (InspIRCd* Instance) : command_t(Instance,"NOTICE",0,2) { syntax = "<target>{,<target>} <message>"; }
+       cmd_notice (InspIRCd* Instance) : Command(Instance,"NOTICE",0,2) { syntax = "<target>{,<target>} <message>"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 3a61c8a802f6ea8ea4af5c6a10a6e6ce4e74b8a4..17d71dbe3c94bee12221a246b64046fcfe4a2ab6 100644 (file)
@@ -26,12 +26,12 @@ bool OneOfMatches(const char* host, const char* ip, const char* hostlist);
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_oper : public command_t
+class cmd_oper : public Command
 {
  public:
        /** Constructor for oper.
         */
-       cmd_oper (InspIRCd* Instance) : command_t(Instance,"OPER",0,2) { syntax = "<username> <password>"; }
+       cmd_oper (InspIRCd* Instance) : Command(Instance,"OPER",0,2) { syntax = "<username> <password>"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index c4c9668a358d4224cdecef9b8663feda93663267..c419fb7981327b97521eb02d87b38c9dbfed13da 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_part : public command_t
+class cmd_part : public Command
 {
  public:
        /** Constructor for part.
         */
-       cmd_part (InspIRCd* Instance) : command_t(Instance,"PART",0,1) { syntax = "<channel>{,<channel>} [<reason>]"; }
+       cmd_part (InspIRCd* Instance) : Command(Instance,"PART",0,1) { syntax = "<channel>{,<channel>} [<reason>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 609c1e72f0d4ed9431326cc480800f49dd345c13..0edd17a97b8a995f645aa183b4e8c5ab20051218 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_pass : public command_t
+class cmd_pass : public Command
 {
  public:
        /** Constructor for pass.
         */
-       cmd_pass (InspIRCd* Instance) : command_t(Instance,"PASS",0,1,true) { syntax = "<password>"; }
+       cmd_pass (InspIRCd* Instance) : Command(Instance,"PASS",0,1,true) { syntax = "<password>"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 83bbd06ad9a86c0d4e91eca7eaec8d29f20743d9..6e856fa3addfee2240d3a2a69c8f05e8e9b46ef7 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_ping : public command_t
+class cmd_ping : public Command
 {
  public:
        /** Constructor for ping.
         */
-       cmd_ping (InspIRCd* Instance) : command_t(Instance,"PING",0,1) { syntax = "<servername> [:<servername>]"; }
+       cmd_ping (InspIRCd* Instance) : Command(Instance,"PING",0,1) { syntax = "<servername> [:<servername>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 26e7444d11bbdc0ac5b5bc806fd19b15651cb9f3..f050a4ee826e002564326a0841387b2ebdf0003d 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_pong : public command_t
+class cmd_pong : public Command
 {
  public:
        /** Constructor for pong.
         */
-       cmd_pong (InspIRCd* Instance) : command_t(Instance,"PONG",0,1) { syntax = "<ping-text>"; }
+       cmd_pong (InspIRCd* Instance) : Command(Instance,"PONG",0,1) { syntax = "<ping-text>"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 276580fbe53481a01d4f53aa42b60bd868bb7c0e..604093851c708ba9921a2ff5eb035d2bc9e04805 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_privmsg : public command_t
+class cmd_privmsg : public Command
 {
  public:
        /** Constructor for privmsg.
         */
-       cmd_privmsg (InspIRCd* Instance) : command_t(Instance,"PRIVMSG",0,2) { syntax = "<target>{,<target>} <message>"; }
+       cmd_privmsg (InspIRCd* Instance) : Command(Instance,"PRIVMSG",0,2) { syntax = "<target>{,<target>} <message>"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 4221f78b7232112096cab99de41b8ba3e310f863..fb9e8804873a1beae453527df0b6b113f073a0db 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_qline : public command_t
+class cmd_qline : public Command
 {
  public:
        /** Constructor for qline.
         */
-       cmd_qline (InspIRCd* Instance) : command_t(Instance,"QLINE",'o',1) { syntax = "<nick> [<duration> :<reason>]"; }
+       cmd_qline (InspIRCd* Instance) : Command(Instance,"QLINE",'o',1) { syntax = "<nick> [<duration> :<reason>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index c0a27744a384f448a8f34ae24053259857adb247..06c564ac00a54b7e8a0f5d7e02ff4599157c2a1b 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_quit : public command_t
+class cmd_quit : public Command
 {
  public:
        /** Constructor for quit.
         */
-       cmd_quit (InspIRCd* Instance) : command_t(Instance,"QUIT",0,0,true) { syntax = "[<message>]"; }
+       cmd_quit (InspIRCd* Instance) : Command(Instance,"QUIT",0,0,true) { syntax = "[<message>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 818a038c816aef3306db3a294a04fc4b47c5cea2..684ffee9c5d9386cd6170582f9125708fdc63ba0 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_rehash : public command_t
+class cmd_rehash : public Command
 {
  public:
        /** Constructor for rehash.
         */
-       cmd_rehash (InspIRCd* Instance) : command_t(Instance,"REHASH",'o',0) { syntax = "[<servermask>]"; }
+       cmd_rehash (InspIRCd* Instance) : Command(Instance,"REHASH",'o',0) { syntax = "[<servermask>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 6e21e0dfa3dfc3fd46f3076345ff857c545a95f9..67281628993a550da5305a000c94a85e47bac5d2 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_reloadmodule : public command_t
+class cmd_reloadmodule : public Command
 {
  public:
        /** Constructor for reloadmodule.
         */
-       cmd_reloadmodule (InspIRCd* Instance) : command_t(Instance,"RELOADMODULE",'o',1) { syntax = "<modulename>"; }
+       cmd_reloadmodule (InspIRCd* Instance) : Command(Instance,"RELOADMODULE",'o',1) { syntax = "<modulename>"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index e66873ebbadde7c9f0172c67f39da03005384b29..0834bf61b478a38f68812c114e04413cab64dcae 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_restart : public command_t
+class cmd_restart : public Command
 {
  public:
        /** Constructor for restart.
         */
-       cmd_restart (InspIRCd* Instance) : command_t(Instance,"RESTART",'o',1) { syntax = "<password>"; }
+       cmd_restart (InspIRCd* Instance) : Command(Instance,"RESTART",'o',1) { syntax = "<password>"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index a57080eaa9ee940c9d31e182963f948079ffdedb..5313dae3237fde807bb11ca018b19c119bdb1ded 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_rules : public command_t
+class cmd_rules : public Command
 {
  public:
        /** Constructor for rules.
         */
-       cmd_rules (InspIRCd* Instance) : command_t(Instance,"RULES",0,0) { syntax = "[<servername>]"; }
+       cmd_rules (InspIRCd* Instance) : Command(Instance,"RULES",0,0) { syntax = "[<servername>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 20d8ca8a318537a3b5d394d07964bacd96538f80..e3383e5c72689ac09f205a3df5d6c9234548b779 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_server : public command_t
+class cmd_server : public Command
 {
  public:
        /** Constructor for server.
         */
-       cmd_server (InspIRCd* Instance) : command_t(Instance,"SERVER",0,0) { }
+       cmd_server (InspIRCd* Instance) : Command(Instance,"SERVER",0,0) { }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index fd09ca437f358df7e7e0e1e6b7b3be9397df3cce..faef49dff4d7d87d548fa363a6815a3ca2f90a18 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_squit : public command_t
+class cmd_squit : public Command
 {
  public:
        /** Constructor for squit.
         */
-       cmd_squit (InspIRCd* Instance) : command_t(Instance,"SQUIT",'o',1) { syntax = "<servername> [<reason>]"; }
+       cmd_squit (InspIRCd* Instance) : Command(Instance,"SQUIT",'o',1) { syntax = "<servername> [<reason>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index ce4755feccbb4359504f6e21677bc0b19ef31dd0..2931a27e0637e2c4841c0b012aa1428c23cfd107 100644 (file)
@@ -27,12 +27,12 @@ DllExport void DoStats(InspIRCd* Instance, char statschar, userrec* user, string
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_stats : public command_t
+class cmd_stats : public Command
 {
  public:
        /** Constructor for stats.
         */
-       cmd_stats (InspIRCd* Instance) : command_t(Instance,"STATS",0,1) { syntax = "<stats-symbol> [<servername>]"; }
+       cmd_stats (InspIRCd* Instance) : Command(Instance,"STATS",0,1) { syntax = "<stats-symbol> [<servername>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index d0206b84b6fdc2d357b05212c22df4260208327f..24423c46ed3b38771b3a5a51c206777bcaa1e841 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_time : public command_t
+class cmd_time : public Command
 {
  public:
        /** Constructor for time.
         */
-       cmd_time (InspIRCd* Instance) : command_t(Instance,"TIME",0,0) { syntax = "[<servername>]"; }
+       cmd_time (InspIRCd* Instance) : Command(Instance,"TIME",0,0) { syntax = "[<servername>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index ce82ad119860a4b3438f4ee70fd96b62184e020a..0e75df750f8b14251d2d9fb0f2f7e1d05e28f62d 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_topic : public command_t
+class cmd_topic : public Command
 {
  public:
        /** Constructor for topic.
         */
-       cmd_topic (InspIRCd* Instance) : command_t(Instance,"TOPIC",0,1) { syntax = "<channel> [<topic>]"; }
+       cmd_topic (InspIRCd* Instance) : Command(Instance,"TOPIC",0,1) { syntax = "<channel> [<topic>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 69ee31df154e075b7488195b9bacd503ef17ca59..6f5aecf0069d567d8df51051c7b0a7d2d495c1f2 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_trace : public command_t
+class cmd_trace : public Command
 {
  public:
        /** Constructor for trace.
         */
-       cmd_trace (InspIRCd* Instance) : command_t(Instance,"TRACE",'o',0) { syntax = "[<object>]"; }
+       cmd_trace (InspIRCd* Instance) : Command(Instance,"TRACE",'o',0) { syntax = "[<object>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 25515114d145d47b51a449678f661e017ab2641c..962c7dcb6de9641c44a5110defff3d78f743153b 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_unloadmodule : public command_t
+class cmd_unloadmodule : public Command
 {
  public:
        /** Constructor for unloadmodule.
         */
-       cmd_unloadmodule (InspIRCd* Instance) : command_t(Instance,"UNLOADMODULE",'o',1) { syntax = "<modulename>"; }
+       cmd_unloadmodule (InspIRCd* Instance) : Command(Instance,"UNLOADMODULE",'o',1) { syntax = "<modulename>"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 29a8591310eaad0cec9d9c82ddbc5b8c60f6e963..dc4e0e3aaa7885327208fff5200fab1340f77cf1 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_user : public command_t
+class cmd_user : public Command
 {
  public:
        /** Constructor for user.
         */
-       cmd_user (InspIRCd* Instance) : command_t(Instance,"USER",0,4,true) { syntax = "<username> <localhost> <remotehost> <GECOS>"; }
+       cmd_user (InspIRCd* Instance) : Command(Instance,"USER",0,4,true) { syntax = "<username> <localhost> <remotehost> <GECOS>"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 85ad55550c625c8cc27a8b69a07ffb9fb6693998..bd19219de78c6d93837ad8c0b1482b1162f84f74 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_userhost : public command_t
+class cmd_userhost : public Command
 {
  public:
        /** Constructor for userhost.
         */
-       cmd_userhost (InspIRCd* Instance) : command_t(Instance,"USERHOST",0,1) { syntax = "<nick>{,<nick>}"; }
+       cmd_userhost (InspIRCd* Instance) : Command(Instance,"USERHOST",0,1) { syntax = "<nick>{,<nick>}"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 825e9fdbcc2e4c8c407a559b78a14fb7ca9f31cb..2163bc1cf7430374241e28e023d188a78de1e727 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_version : public command_t
+class cmd_version : public Command
 {
  public:
        /** Constructor for version.
         */
-       cmd_version (InspIRCd* Instance) : command_t(Instance,"VERSION",0,0) { syntax = "[<servername>]"; }
+       cmd_version (InspIRCd* Instance) : Command(Instance,"VERSION",0,0) { syntax = "[<servername>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index a65bced0d82e41b416f66a9b3cac9af3fbeb0ec6..6c09989fe7140203226aa1f36dafcece7945b48d 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_wallops : public command_t
+class cmd_wallops : public Command
 {
  public:
        /** Constructor for wallops.
         */
-       cmd_wallops (InspIRCd* Instance) : command_t(Instance,"WALLOPS",'o',1) { syntax = "<any-text>"; }
+       cmd_wallops (InspIRCd* Instance) : Command(Instance,"WALLOPS",'o',1) { syntax = "<any-text>"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index cf6849d7dd8748c11ca9b85a03c5ba103f066ee4..f89137c0a4632a3495cd7fe5cf9eb0ef9354ef9e 100644 (file)
@@ -24,7 +24,7 @@
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_who : public command_t
+class cmd_who : public Command
 {
        bool CanView(chanrec* chan, userrec* user);
        bool opt_viewopersonly;
@@ -41,7 +41,7 @@ class cmd_who : public command_t
  public:
        /** Constructor for who.
         */
-       cmd_who (InspIRCd* Instance) : command_t(Instance,"WHO",0,1) { syntax = "<server>|<nickname>|<channel>|<realname>|<host>|0 [ohurmMiaplf]"; }
+       cmd_who (InspIRCd* Instance) : Command(Instance,"WHO",0,1) { syntax = "<server>|<nickname>|<channel>|<realname>|<host>|0 [ohurmMiaplf]"; }
        void SendWhoLine(userrec* user, const std::string &initial, chanrec* ch, userrec* u, std::vector<std::string> &whoresults);
        /** Handle command.
         * @param parameters The parameters to the comamnd
index 545b0c8c4d5749626223e978974f78af240de255..6aec85e0a0d8e2fff9665dd732fe3f4192df7d82 100644 (file)
@@ -27,12 +27,12 @@ DllExport void do_whois(InspIRCd* Instance, userrec* user, userrec* dest,unsigne
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_whois : public command_t
+class cmd_whois : public Command
 {
  public:
        /** Constructor for whois.
         */
-       cmd_whois (InspIRCd* Instance) : command_t(Instance,"WHOIS",0,1) { syntax = "<nick>{,<nick>}"; }
+       cmd_whois (InspIRCd* Instance) : Command(Instance,"WHOIS",0,1) { syntax = "<nick>{,<nick>}"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index 28ded7ca2bb038989d862595aa63bd6f463a3614..50f5ffd0f2d5c9abd3c60b7437928e80774aedbf 100644 (file)
@@ -56,7 +56,7 @@ typedef std::deque<std::pair<time_t,irc::string> > whowas_users_fifo;
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_whowas : public command_t
+class cmd_whowas : public Command
 {
   private:
        /** Whowas container, contains a map of vectors of users tracked by WHOWAS
index 1a89dcf82a84567c94008c57d02975cdad9d6931..114de31b19b9e5089a0857252d44126922fcf066 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_zline : public command_t
+class cmd_zline : public Command
 {
  public:
        /** Constructor for zline.
         */
-       cmd_zline (InspIRCd* Instance) : command_t(Instance,"ZLINE",'o',1) { syntax = "<ipmask> [<duration> :<reason>]"; }
+       cmd_zline (InspIRCd* Instance) : Command(Instance,"ZLINE",'o',1) { syntax = "<ipmask> [<duration> :<reason>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
index d112e885c533b36e52100476ecffd3dd0a1804f9..abfc740daabc329779c9739d9d76bf4f9bd77b95 100644 (file)
@@ -52,9 +52,9 @@ enum TranslateType
 
 
 /** A structure that defines a command. Every command available
- * in InspIRCd must be defined as derived from command_t.
+ * in InspIRCd must be defined as derived from Command.
  */
-class CoreExport command_t : public Extensible
+class CoreExport Command : public Extensible
 {
  protected:
        /** Owner/Creator object
@@ -102,7 +102,7 @@ class CoreExport command_t : public Extensible
         * be allowed before the user is 'registered' (has sent USER,
         * NICK, optionally PASS, and been resolved).
         */
-       command_t(InspIRCd* Instance, const std::string &cmd, char flags, int minpara, int before_reg = false) : ServerInstance(Instance), command(cmd), flags_needed(flags), min_params(minpara), disabled(false), works_before_reg(before_reg)
+       Command(InspIRCd* Instance, const std::string &cmd, char flags, int minpara, int before_reg = false) : ServerInstance(Instance), command(cmd), flags_needed(flags), min_params(minpara), disabled(false), works_before_reg(before_reg)
        {
                use_count = 0;
                total_bytes = 0;
@@ -173,12 +173,12 @@ class CoreExport command_t : public Extensible
 
        /** Standard constructor gubbins
         */
-       virtual ~command_t() {}
+       virtual ~Command() {}
 };
 
 /** A hash of commands used by the core
  */
-typedef nspace::hash_map<std::string,command_t*> command_table;
+typedef nspace::hash_map<std::string,Command*> Commandable;
 
 #define TRANSLATE1(x1) translation.push_back(x1);
 #define TRANSLATE2(x1,x2)  translation.push_back(x1);translation.push_back(x2);
index c44325a02988b07588d94ffd2ed52de9d1c16674..7aa5a5ec3f1a625d4b2e6242d8313796449e7275 100644 (file)
@@ -773,10 +773,10 @@ class CoreExport InspIRCd : public classbase
        bool AddResolver(Resolver* r, bool cached);
 
        /** Add a command to this server's command parser
-        * @param f A command_t command handler object to add
+        * @param f A Command command handler object to add
         * @throw ModuleException Will throw ModuleExcption if the command already exists
         */
-       void AddCommand(command_t *f);
+       void AddCommand(Command *f);
 
        /** Send a modechange.
         * The parameters provided are identical to that sent to the
index df984a10ff01e8a72091758ba9b7d3fbcc1e4ac5..a7a72c0f8551c67405bf388b9eed7c87610b478a 100644 (file)
@@ -15,7 +15,7 @@
 #include "commands/cmd_admin.h"
 
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_admin(Instance);
 }
index 98209217f7e3f401cab0cbcf9ff3d0d7188d2f1a..c27ce222a38dd8d2f2812a22d2d1bfc83e21d5ec 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_away.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_away(Instance);
 }
index 333593425d8ba99c3017ccd727149f6dce2a4bbb..0a08498e8ab10dcb44f3f4085117ee23629f97f8 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_clearcache.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_clearcache(Instance);
 }
index 85437c2b05e7e81de47ba04409c62a3ab596da30..41f68690ee1d97e3994da579aea6664fe67224c5 100644 (file)
 
 /** Handle /COMMANDS
  */
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_commands(Instance);
 }
 
 CmdResult cmd_commands::Handle (const char** parameters, int pcnt, userrec *user)
 {
-       for (command_table::iterator i = ServerInstance->Parser->cmdlist.begin(); i != ServerInstance->Parser->cmdlist.end(); i++)
+       for (Commandable::iterator i = ServerInstance->Parser->cmdlist.begin(); i != ServerInstance->Parser->cmdlist.end(); i++)
        {
                user->WriteServ("902 %s :%s %s %d",user->nick,i->second->command.c_str(),i->second->source.c_str(),i->second->min_params);
        }
index 0f1e106951db7a9abfa3821ac213f7fb9a1c802a..63afa02a21cf08e5dac403d9a6944de52931cfda 100644 (file)
@@ -18,7 +18,7 @@
  * This is handled by the server linking module, if necessary. Do not remove this stub.
  */
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_connect(Instance);
 }
index 6025ea2b573a8d00dcdf22ec8c002bfc91ba92a9..4772c9d173cb11ead90ca57820e687c53f8c235f 100644 (file)
@@ -15,7 +15,7 @@
 #include "commands/cmd_die.h"
 #include "exitcodes.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_die(Instance);
 }
index 96e04da71eece464f37565eec24feb4d9a611767..d28f72418ecac3cafca8819c465af20780cfb60d 100644 (file)
@@ -15,7 +15,7 @@
 #include "xline.h"
 #include "commands/cmd_eline.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_eline(Instance);
 }
index bed81c9846ab291b274f00ac75f579c75adc4e5b..2dff4902e3949f150d7aa15b4ecec4617de00011 100644 (file)
@@ -15,7 +15,7 @@
 #include "xline.h"
 #include "commands/cmd_gline.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_gline(Instance);
 }
index ce2b471db864f34c36d4f0bd38c1c4cc7d4b91ad..29085afb7486c0e15648c92bc98bbb9840768b06 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_info.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_info(Instance);
 }
index 74ac7ea2c0a3ed81b58de2eba70bb18d12679a72..a1e3fb24b4a0fda7209e122f44bd41e54d83649b 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_invite.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_invite(Instance);
 }
index 4ca319afcd21a8a187518c867bbc382501fe58b2..4c5542cd8788726b49018d282130c996db99b1cc 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_ison.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_ison(Instance);
 }
index 4e69cbb4ef15554181470950784ecd801e36e9c3..171f90bba3a381b8090ff65726aa492e6cd6282a 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_join.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_join(Instance);
 }
index bd700113f52d7cde1d029bacca6f462d8d3c08ca..78edb177d2e219ce90b62b71ad5dd82a7ddbeab5 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_kick.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_kick(Instance);
 }
index 43cf1d5ab2d393d621c5cef7176a8d05d79759cc..a2e76ce458049948aaff0900919c4deada1d2edc 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_kill.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_kill(Instance);
 }
index ec31228ed28cccc23a4fe096a588ed2999dac75f..75a8685773eefb5d9a82fad17b64ae70db219130 100644 (file)
@@ -15,7 +15,7 @@
 #include "xline.h"
 #include "commands/cmd_kline.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_kline(Instance);
 }
index 45011d3e83836894caebe15d9e531bf49fd43a4c..2576b63e96911b29edb266cd6ec505acfae72a65 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_links.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_links(Instance);
 }
index 1e994965b211af2961435a0f007e70f552aa8d9a..e77feeb668a6d73bf008bb7adb6cd96f10320b0b 100644 (file)
@@ -17,7 +17,7 @@
 
 /** Handle /LIST
  */
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_list(Instance);
 }
index e9f6cf39c38204efa1189fdad247e041651e4707..0c5cb139b69a050511f50c0615692165ee0c4495 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_loadmodule.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_loadmodule(Instance);
 }
index 0d70fa7881c187c6beff95e33ea67496a8ac440f..cc66ba435b095ce94541385b85ce4a25d6ec550c 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_lusers.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_lusers(Instance);
 }
index 70918e39275832c6853dbe53d72d05db58a99eb0..471f53a1aa1b0e505d641e6fc7de70b8f410e814 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_map.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_map(Instance);
 }
index 4e4466d360d39bba536551dad3ced8c1e5c277a3..5680e1b05934b2c7022ecc16178b9582c6fbcdd5 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_mode.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_mode(Instance);
 }
index dc3eea15d5fb6c8b7eb4f19cce672539dead415b..12697a68f8498138db244133ad87f79cfac9c578 100644 (file)
@@ -31,7 +31,7 @@ char* itab[] = {
        "OnPostCommand", "OnPostJoin", "OnWhoisLine", "OnBuildExemptList", "OnRawSocketConnect", "OnGarbageCollect", NULL
 };
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_modules(Instance);
 }
index 38117be6b0feb6ca8a52e3ae3f0d63ef76f7f83e..53d140a9d41e397fddfc67daff535769ef2fe81e 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_motd.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_motd(Instance);
 }
index 2b3a421a2dc9230b116be626ba3b03d03f31c994..21ab2f3edacc3672131769bfafa379483e603849 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_names.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_names(Instance);
 }
index 4eb439895f581d8ef8c5c7241b6239ea5fc6b7be..6eb72349b09f9a4b035900e2625bbd4751abb146 100644 (file)
@@ -15,7 +15,7 @@
 #include "xline.h"
 #include "commands/cmd_nick.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_nick(Instance);
 }
index f6634184638d3c9c596254c33ddec2e1946c9d10..7c0f06b4006602a3430da2324f44695b14f27c50 100644 (file)
@@ -15,7 +15,7 @@
 #include "wildcard.h"
 #include "commands/cmd_notice.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_notice(Instance);
 }
index 4d70f29ebb5ae103676a1811dd0e075a550a7032..cc2ae6e65195b05ad3cb2cc2b3152542995ecdec 100644 (file)
@@ -30,7 +30,7 @@ bool OneOfMatches(const char* host, const char* ip, const char* hostlist)
        return false;
 }
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_oper(Instance);
 }
index 9887d844ed4ed448ca14d77b5a7be161711013e7..9088ec21d406f7797931f78626dcd44f90826d50 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_part.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_part(Instance);
 }
index 9b57c375df6ab0512306918064b8ff77b2761f48..78bf1a2cfa0f75b1826a5c214645cd290d57e19c 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_pass.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_pass(Instance);
 }
index 2ffd7850b36ce5f4ebf35f7f8e88acac75032524..ff16f2e44c1f64497ac9cbf1cf121ff453dd8231 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_ping.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_ping(Instance);
 }
index 08d47eca7f54c908aac6937479cbd15689d6aefa..dab4de7203bfacc4b9c5b6e0c64f358700f26cd5 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_pong.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_pong(Instance);
 }
index 5c3020b5b4e75ef2bea1cc87d2580b00503db87a..2c54a770a81b1ff39f7b2473d07156aa2447a7cf 100644 (file)
@@ -15,7 +15,7 @@
 #include "wildcard.h"
 #include "commands/cmd_privmsg.h"
 
-extern "C" DllExport  command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport  Command* init_command(InspIRCd* Instance)
 {
        return new cmd_privmsg(Instance);
 }
index 41643c5d6fec52a0f0ea0f3b77348e80b2a119eb..1d4f8d089e3b6f0d4bda9310b08e58414ef1b902 100644 (file)
@@ -17,7 +17,7 @@
 
 
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_qline(Instance);
 }
index 671e1ccef3c38acfc061f464e6ff08da20e3023a..8626db1efe926dc4403595aedbf62a3ccd7c7c9e 100644 (file)
@@ -16,7 +16,7 @@
 
 
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_quit(Instance);
 }
index ed972007d61d7a1c83e763352faf8748bfb878fd..a1292f19f2b49971c19fad18bc04c47fc35cd1da 100644 (file)
@@ -16,7 +16,7 @@
 
 
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_rehash(Instance);
 }
index df198d662d0994604ada5438dc9f45cb004e6c71..b1201ef6e3bcd859bc9b344953fdc7525652553a 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_reloadmodule.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_reloadmodule(Instance);
 }
index b9afd7c9db4f315e429ae2180da93b89dc279972..8da98f77e63e90a9cf799fcf334e358c13b22516 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_restart.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_restart(Instance);
 }
index ef63d58fda6f4005abaec697efea3484fa801772..7c47607db293d0b70a3b78e5901ad86663d06854 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_rules.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_rules(Instance);
 }
index 0b71ba0056fc006a4786673ff6875a0931645c7d..837c9406739b4b66548062d1107b1fc0230f6dfe 100644 (file)
@@ -16,7 +16,7 @@
 
 
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_server(Instance);
 }
index 94e7c148b502f092490d08c60e01c3a902e0ed9b..a29ddbaef7b4dc8e5bb8d398bb73d1be1352a057 100644 (file)
@@ -19,7 +19,7 @@
  */
 
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_squit(Instance);
 }
index f8d5eba27f823e1bca54719f8007582d400ce5e8..4b93d5f5f0457eba8fcb2df1aead7214ca5b499f 100644 (file)
@@ -26,7 +26,7 @@
 #include "commands/cmd_whowas.h"
 
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_stats(Instance);
 }
@@ -159,7 +159,7 @@ DllExport void DoStats(InspIRCd* ServerInstance, char statschar, userrec* user,
 
                /* stats m (list number of times each command has been used, plus bytecount) */
                case 'm':
-                       for (command_table::iterator i = ServerInstance->Parser->cmdlist.begin(); i != ServerInstance->Parser->cmdlist.end(); i++)
+                       for (Commandable::iterator i = ServerInstance->Parser->cmdlist.begin(); i != ServerInstance->Parser->cmdlist.end(); i++)
                        {
                                if (i->second->use_count)
                                {
@@ -175,11 +175,11 @@ DllExport void DoStats(InspIRCd* ServerInstance, char statschar, userrec* user,
                        results.push_back(sn+" 240 "+user->nick+" :InspIRCd(CLASS) "+ConvToStr(sizeof(InspIRCd))+" bytes");
                        results.push_back(sn+" 249 "+user->nick+" :Users(HASH_MAP) "+ConvToStr(ServerInstance->clientlist->size())+" ("+ConvToStr(ServerInstance->clientlist->size()*sizeof(userrec))+" bytes)");
                        results.push_back(sn+" 249 "+user->nick+" :Channels(HASH_MAP) "+ConvToStr(ServerInstance->chanlist->size())+" ("+ConvToStr(ServerInstance->chanlist->size()*sizeof(chanrec))+" bytes)");
-                       results.push_back(sn+" 249 "+user->nick+" :Commands(VECTOR) "+ConvToStr(ServerInstance->Parser->cmdlist.size())+" ("+ConvToStr(ServerInstance->Parser->cmdlist.size()*sizeof(command_t))+" bytes)");
+                       results.push_back(sn+" 249 "+user->nick+" :Commands(VECTOR) "+ConvToStr(ServerInstance->Parser->cmdlist.size())+" ("+ConvToStr(ServerInstance->Parser->cmdlist.size()*sizeof(Command))+" bytes)");
 
                        if (!ServerInstance->Config->WhoWasGroupSize == 0 && !ServerInstance->Config->WhoWasMaxGroups == 0)
                        {
-                               command_t* whowas_command = ServerInstance->Parser->GetHandler("WHOWAS");
+                               Command* whowas_command = ServerInstance->Parser->GetHandler("WHOWAS");
                                if (whowas_command)
                                {
                                        std::deque<classbase*> params;
index d34a1eed5f3c57a833eaa62db950377572166957..926d692041cf7ffb4eae5143fdf663ba25cada54 100644 (file)
@@ -16,7 +16,7 @@
 
 
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_time(Instance);
 }
index d303830243e621d6604dc8f8ea523888f3ce3e76..3318972fb6b38f0e8699b6c87a83b7db1a5b30e2 100644 (file)
@@ -15,7 +15,7 @@
 #include "commands/cmd_topic.h"
 
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_topic(Instance);
 }
index d4e0b9254e065a6827142fa6d9de6de27d7c73a3..a71bb42bfd9f2c80e28fb7f4462e305e70550f0c 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_trace.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_trace(Instance);
 }
index 932142049799170e442015e59f6dcdd3fc7f5076..5cb4109501b569fc0d9e30f1f02727409231d4b7 100644 (file)
@@ -16,7 +16,7 @@
 
 
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_unloadmodule(Instance);
 }
index 42e70c1df4ca988e1a4113201acec65001ed0a63..f2240bb92f35cacdae237dc2a8d88104145f9f52 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_user.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_user(Instance);
 }
index 8a0e187fb0a4503b7fdd13e32bc5add9ee924e8d..dd1a2d819a5406268c60ce8e11923c486ca07b25 100644 (file)
@@ -14,7 +14,7 @@
 #include "inspircd.h"
 #include "commands/cmd_userhost.h"
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_userhost(Instance);
 }
index 2b6522d818a434a19ae425f080efa0e2befd72b7..c355717f76f691bd1e414841f15e44a6ff804902 100644 (file)
@@ -16,7 +16,7 @@
 
 
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_version(Instance);
 }
index a66ceddf5258c00e649c18de24a3ff7551aa343d..90a7d8bdebc969841f3da2b5775d3f23b7878ab9 100644 (file)
@@ -16,7 +16,7 @@
 
 
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_wallops(Instance);
 }
index 93855dce2d7714267a70945c30e674f219eb4086..91c651bcc99d030a7110eb8bf16a862e79776129 100644 (file)
@@ -107,7 +107,7 @@ bool cmd_who::whomatch(userrec* user, const char* matchtext)
 
 
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_who(Instance);
 }
index b6f85e01c015024d932089e4f864611226548b46..508200cb60eeebe57bc03b76ae0637e899874480 100644 (file)
@@ -86,7 +86,7 @@ void do_whois(InspIRCd* ServerInstance, userrec* user, userrec* dest,unsigned lo
 
 
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_whois(Instance);
 }
index 1531f6239d74baf02d94e67caaac69e46a214fe8..f982d48737ad740fb63faa5039ac6ded28630c3a 100644 (file)
 
 WhoWasMaintainTimer * timer;
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_whowas(Instance);
 }
 
 cmd_whowas::cmd_whowas(InspIRCd* Instance)
-: command_t(Instance, "WHOWAS", 0, 1)
+: Command(Instance, "WHOWAS", 0, 1)
 {
        syntax = "<nick>{,<nick>}";
        timer = new WhoWasMaintainTimer(Instance, 3600);
@@ -340,7 +340,7 @@ WhoWasGroup::~WhoWasGroup()
 /* every hour, run this function which removes all entries older than Config->WhoWasMaxKeep */
 void WhoWasMaintainTimer::Tick(time_t t)
 {
-       command_t* whowas_command = ServerInstance->Parser->GetHandler("WHOWAS");
+       Command* whowas_command = ServerInstance->Parser->GetHandler("WHOWAS");
        if (whowas_command)
        {
                std::deque<classbase*> params;
index 4a70069ab6619eb2a1bc9cb79ee45ec79289816b..cb0167f4e129fe75e97bcc755cd796bc29b2700b 100644 (file)
@@ -17,7 +17,7 @@
 
 
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_zline(Instance);
 }
index 30865f414a875559f3b6dde304bf1aee7d75e956..68555ec8b3c659addd76bb9b0ad83a19a34cb79c 100644 (file)
@@ -112,7 +112,7 @@ long InspIRCd::Duration(const std::string &str)
  * The second version is much simpler and just has the one stream to read, and is used in NAMES, WHOIS, PRIVMSG etc.
  * Both will only parse until they reach ServerInstance->Config->MaxTargets number of targets, to stop abuse via spam.
  */
-int CommandParser::LoopCall(userrec* user, command_t* CommandObj, const char** parameters, int pcnt, unsigned int splithere, unsigned int extra)
+int CommandParser::LoopCall(userrec* user, Command* CommandObj, const char** parameters, int pcnt, unsigned int splithere, unsigned int extra)
 {
        /* First check if we have more than one item in the list, if we don't we return zero here and the handler
         * which called us just carries on as it was.
@@ -161,7 +161,7 @@ int CommandParser::LoopCall(userrec* user, command_t* CommandObj, const char** p
        return 1;
 }
 
-int CommandParser::LoopCall(userrec* user, command_t* CommandObj, const char** parameters, int pcnt, unsigned int splithere)
+int CommandParser::LoopCall(userrec* user, Command* CommandObj, const char** parameters, int pcnt, unsigned int splithere)
 {
        /* First check if we have more than one item in the list, if we don't we return zero here and the handler
         * which called us just carries on as it was.
@@ -211,7 +211,7 @@ int CommandParser::LoopCall(userrec* user, command_t* CommandObj, const char** p
 
 bool CommandParser::IsValidCommand(const std::string &commandname, int pcnt, userrec * user)
 {
-       command_table::iterator n = cmdlist.find(commandname);
+       Commandable::iterator n = cmdlist.find(commandname);
 
        if (n != cmdlist.end())
        {
@@ -233,9 +233,9 @@ bool CommandParser::IsValidCommand(const std::string &commandname, int pcnt, use
        return false;
 }
 
-command_t* CommandParser::GetHandler(const std::string &commandname)
+Command* CommandParser::GetHandler(const std::string &commandname)
 {
-       command_table::iterator n = cmdlist.find(commandname);
+       Commandable::iterator n = cmdlist.find(commandname);
        if (n != cmdlist.end())
                return n->second;
 
@@ -246,7 +246,7 @@ command_t* CommandParser::GetHandler(const std::string &commandname)
 
 CmdResult CommandParser::CallHandler(const std::string &commandname,const char** parameters, int pcnt, userrec *user)
 {
-       command_table::iterator n = cmdlist.find(commandname);
+       Commandable::iterator n = cmdlist.find(commandname);
 
        if (n != cmdlist.end())
        {
@@ -310,7 +310,7 @@ void CommandParser::ProcessCommand(userrec *user, std::string &cmd)
                return;
        }
 
-       command_table::iterator cm = cmdlist.find(command);
+       Commandable::iterator cm = cmdlist.find(command);
        
        if (cm != cmdlist.end())
        {
@@ -381,7 +381,7 @@ void CommandParser::ProcessCommand(userrec *user, std::string &cmd)
 
 bool CommandParser::RemoveCommands(const char* source)
 {
-       command_table::iterator i,safei;
+       Commandable::iterator i,safei;
        for (i = cmdlist.begin(); i != cmdlist.end(); i++)
        {
                safei = i;
@@ -399,9 +399,9 @@ bool CommandParser::RemoveCommands(const char* source)
        return true;
 }
 
-void CommandParser::RemoveCommand(command_table::iterator safei, const char* source)
+void CommandParser::RemoveCommand(Commandable::iterator safei, const char* source)
 {
-       command_t* x = safei->second;
+       Command* x = safei->second;
        if (x->source == std::string(source))
        {
                cmdlist.erase(safei);
@@ -431,7 +431,7 @@ void CommandParser::ProcessBuffer(std::string &buffer,userrec *user)
        }
 }
 
-bool CommandParser::CreateCommand(command_t *f, void* so_handle)
+bool CommandParser::CreateCommand(Command *f, void* so_handle)
 {
        if (so_handle)
        {
@@ -485,7 +485,7 @@ bool CommandParser::ReloadCommand(const char* cmd, userrec* user)
 
        if (command != RFCCommands.end())
        {
-               command_t* cmdptr = cmdlist.find(commandname)->second;
+               Command* cmdptr = cmdlist.find(commandname)->second;
                cmdlist.erase(cmdlist.find(commandname));
 
                for (char* x = commandname; *x; x++)
@@ -531,7 +531,7 @@ const char* CommandParser::LoadCommand(const char* name)
 {
        char filename[MAXBUF];
        void* h;
-       command_t* (*cmd_factory_func)(InspIRCd*);
+       Command* (*cmd_factory_func)(InspIRCd*);
 
        /* Command already exists? Succeed silently - this is needed for REHASH */
        if (RFCCommands.find(name) != RFCCommands.end())
@@ -552,7 +552,7 @@ const char* CommandParser::LoadCommand(const char* name)
 
        if (this->FindSym((void **)&cmd_factory_func, h, name))
        {
-               command_t* newcommand = cmd_factory_func(ServerInstance);
+               Command* newcommand = cmd_factory_func(ServerInstance);
                this->CreateCommand(newcommand, h);
        }
        return NULL;
index 3767fbda9d0df1fe06cd482b10b7cbbdc567e6e0..daf1b04de526bbd8341e515a5b3b50fb01b0a49b 100644 (file)
@@ -204,13 +204,13 @@ bool InitializeDisabledCommands(const char* data, InspIRCd* ServerInstance)
        std::string thiscmd;
 
        /* Enable everything first */
-       for (command_table::iterator x = ServerInstance->Parser->cmdlist.begin(); x != ServerInstance->Parser->cmdlist.end(); x++)
+       for (Commandable::iterator x = ServerInstance->Parser->cmdlist.begin(); x != ServerInstance->Parser->cmdlist.end(); x++)
                x->second->Disable(false);
 
        /* Now disable all the ones which the user wants disabled */
        while (dcmds >> thiscmd)
        {
-               command_table::iterator cm = ServerInstance->Parser->cmdlist.find(thiscmd);
+               Commandable::iterator cm = ServerInstance->Parser->cmdlist.find(thiscmd);
                if (cm != ServerInstance->Parser->cmdlist.end())
                {
                        cm->second->Disable(true);
@@ -395,7 +395,7 @@ bool ValidateWhoWas(ServerConfig* conf, const char* tag, const char* value, Valu
                conf->GetInstance()->Log(DEFAULT,"WARNING: <whowas:maxkeep> value less than 3600, setting to default 3600");
        }
 
-       command_t* whowas_command = conf->GetInstance()->Parser->GetHandler("WHOWAS");
+       Command* whowas_command = conf->GetInstance()->Parser->GetHandler("WHOWAS");
        if (whowas_command)
        {
                std::deque<classbase*> params;
index b844bc56bb3230cd628bf9bea822eefd6b678a79..b95dcd59df9d649846a4df55ded5b23c465784f5 100644 (file)
@@ -785,7 +785,7 @@ bool InspIRCd::IsValidModuleCommand(const std::string &commandname, int pcnt, us
        return this->Parser->IsValidCommand(commandname, pcnt, user);
 }
 
-void InspIRCd::AddCommand(command_t *f)
+void InspIRCd::AddCommand(Command *f)
 {
        if (!this->Parser->CreateCommand(f))
        {
index a0d96fc88ac194a43ba309001473b607e12e2f84..d1bece3435396edaddb9447c3966ca6a983d1da4 100644 (file)
@@ -227,7 +227,7 @@ public:
 
        void LoginFail(userrec* user, const std::string &username, const std::string &pass)
        {
-               command_t* oper_command = ServerInstance->Parser->GetHandler("OPER");
+               Command* oper_command = ServerInstance->Parser->GetHandler("OPER");
 
                if (oper_command)
                {
index c67b50c8c82495fd285c8e7ff5a485ad64eff343..e95447b6d2cebd6aec9b5d3bed27de10c525d149 100644 (file)
 
 /** Handle /FINGERPRINT
  */
-class cmd_fingerprint : public command_t
+class cmd_fingerprint : public Command
 {
  public:
-       cmd_fingerprint (InspIRCd* Instance) : command_t(Instance,"FINGERPRINT", 0, 1)
+       cmd_fingerprint (InspIRCd* Instance) : Command(Instance,"FINGERPRINT", 0, 1)
        {
                this->source = "m_ssl_oper_cert.so";
                syntax = "<nickname>";
index dc9274f1e9c2909fa5fb2fb3b3ba93d45ea96592..008608f030be070d19b930b68b943b2f1caf17f0 100644 (file)
 
 /** Handle /SSLINFO
  */
-class cmd_sslinfo : public command_t
+class cmd_sslinfo : public Command
 {
  public:
-       cmd_sslinfo (InspIRCd* Instance) : command_t(Instance,"SSLINFO", 0, 1)
+       cmd_sslinfo (InspIRCd* Instance) : Command(Instance,"SSLINFO", 0, 1)
        {
                this->source = "m_sslinfo.so";
                this->syntax = "<nick>";
index 37dbf38a0ba66d009479690ed09e2f78ce9c2e2f..7afa71803459248293eab415e124e89430cb4e47 100644 (file)
 
 /* $ModDesc: Display timestamps from all servers connected to the network */
 
-class cmd_alltime : public command_t
+class cmd_alltime : public Command
 {
  public:
-       cmd_alltime(InspIRCd *Instance) : command_t(Instance, "ALLTIME", 'o', 0)
+       cmd_alltime(InspIRCd *Instance) : Command(Instance, "ALLTIME", 'o', 0)
        {
                this->source = "m_alltime.so";
                syntax.clear();
index a054a00ef879f0c9312e91bd87f5d70e12f959ba..aa5e184388c7796295fc62d925313674f33e5192 100644 (file)
@@ -164,7 +164,7 @@ class ModuleAuditorium : public Module
 
        void OnUserQuit(userrec* user, const std::string &reason, const std::string &oper_message)
        {
-               command_t* parthandler = ServerInstance->Parser->GetHandler("PART");
+               Command* parthandler = ServerInstance->Parser->GetHandler("PART");
                std::vector<std::string> to_leave;
                const char* parameters[2];
                if (parthandler)
index 7c88b03da3dba9dcf049dfac896847e9bffe7993..6d56b62bce14d8928caaa72e4e3af4cc30705197 100644 (file)
@@ -44,10 +44,10 @@ cbanlist cbans;
 
 /** Handle /CBAN
  */
-class cmd_cban : public command_t
+class cmd_cban : public Command
 {
  public:
-       cmd_cban(InspIRCd* Me) : command_t(Me, "CBAN", 'o', 1)
+       cmd_cban(InspIRCd* Me) : Command(Me, "CBAN", 'o', 1)
        {
                this->source = "m_cban.so";
                this->syntax = "<channel> [<duration> :<reason>]";
index 49a6fdabb454a1229083354dd2b2024278b6f820..eb497dea4021eb45c9cde0bf794f8448e152d461 100644 (file)
@@ -40,13 +40,13 @@ public:
 };
 typedef std::vector<CGIhost> CGIHostlist;
 
-class cmd_webirc : public command_t
+class cmd_webirc : public Command
 {
        InspIRCd* Me;
        CGIHostlist Hosts;
        bool notify;
        public:
-               cmd_webirc(InspIRCd* Me, CGIHostlist &Hosts, bool notify) : command_t(Me, "WEBIRC", 0, 4, true), Hosts(Hosts), notify(notify)
+               cmd_webirc(InspIRCd* Me, CGIHostlist &Hosts, bool notify) : Command(Me, "WEBIRC", 0, 4, true), Hosts(Hosts), notify(notify)
                {
                        this->source = "m_cgiirc.so";
                        this->syntax = "password client hostname ip";
index c4ec91988f751ee203a29d019f19812eb219b8b5..7a48a3d45d605b6b3f48e77f81a8afa146f1e4f7 100644 (file)
 
 /** Handle /CHECK
  */
-class cmd_check : public command_t
+class cmd_check : public Command
 {
  public:
-       cmd_check (InspIRCd* Instance) : command_t(Instance,"CHECK", 'o', 1)
+       cmd_check (InspIRCd* Instance) : Command(Instance,"CHECK", 'o', 1)
        {
                this->source = "m_check.so";
                syntax = "<nickname>|<ip>|<hostmask>|<channel>";
index 5f56236826931a9e4a556314e727a6547a625319..db8094aa25a4ce2f2e237b109e708ac39fa6d2de 100644 (file)
 
 /** Handle /CHGHOST
  */
-class cmd_chghost : public command_t
+class cmd_chghost : public Command
 {
  private:
        char* hostmap;
  public:
-       cmd_chghost (InspIRCd* Instance, char* hmap) : command_t(Instance,"CHGHOST",'o',2), hostmap(hmap)
+       cmd_chghost (InspIRCd* Instance, char* hmap) : Command(Instance,"CHGHOST",'o',2), hostmap(hmap)
        {
                this->source = "m_chghost.so";
                syntax = "<nick> <newhost>";
index d79088cf9b88e99a2f7de5c6f7755a088666e6a2..0561c515636b6a0fa253962916d86cbf74f6bcee 100644 (file)
 
 /** Handle /CHGIDENT
  */
-class cmd_chgident : public command_t
+class cmd_chgident : public Command
 {
  public:
-       cmd_chgident (InspIRCd* Instance) : command_t(Instance,"CHGIDENT", 'o', 2)
+       cmd_chgident (InspIRCd* Instance) : Command(Instance,"CHGIDENT", 'o', 2)
        {
                this->source = "m_chgident.so";
                syntax = "<nick> <newident>";
index ddb38567f195c42fbffe490b767e278498f07054..31467459c16f296b1b8e0633a8a9e15f0a011069 100644 (file)
 
 /** Handle /CHGNAME
  */
-class cmd_chgname : public command_t
+class cmd_chgname : public Command
 {
  public:
-       cmd_chgname (InspIRCd* Instance) : command_t(Instance,"CHGNAME", 'o', 2)
+       cmd_chgname (InspIRCd* Instance) : Command(Instance,"CHGNAME", 'o', 2)
        {
                this->source = "m_chgname.so";
                syntax = "<nick> <newname>";
index 85613f4ef88b4239cb68afae812d259462397716..a8644f6ed6ae698fd29080034ec4a9931a28a1b0 100644 (file)
 
 /** Handle /CHECK
  */
-class cmd_clones : public command_t
+class cmd_clones : public Command
 {
  public:
-       cmd_clones (InspIRCd* Instance) : command_t(Instance,"CLONES", 'o', 1)
+       cmd_clones (InspIRCd* Instance) : Command(Instance,"CLONES", 'o', 1)
        {
                this->source = "m_clones.so";
                syntax = "<limit>";
index e395b427fcd251f38cd44a99549edb0e6b2e881a..da52dd7d97cb6a7e1e16741ff100c44de5b0321a 100644 (file)
 
 /** Handle /CLOSE
  */
-class cmd_close : public command_t
+class cmd_close : public Command
 {
  public:
        /* Command 'close', needs operator */
-       cmd_close (InspIRCd* Instance) : command_t(Instance,"CLOSE", 'o', 0)
+       cmd_close (InspIRCd* Instance) : Command(Instance,"CLOSE", 'o', 0)
        {
                this->source = "m_close.so";
        }
index 73f2cda87dfc2766045a80ed50ad813121685a66..ca277c3aee0e683ad25c2b1d7a5655e710433e04 100644 (file)
 
 /** Handle /TITLE
  */
-class cmd_title : public command_t
+class cmd_title : public Command
 {
        
  public:
-       cmd_title (InspIRCd* Instance) : command_t(Instance,"TITLE",0,2)
+       cmd_title (InspIRCd* Instance) : Command(Instance,"TITLE",0,2)
        {
                this->source = "m_customtitle.so";
                syntax = "<user> <password>";
index fa55f44d8e76632e1a192f97d3b6428ddd34c470..06361c6929415e6789371dfe7931044648d35dc6 100644 (file)
 
 /** Handle /CYCLE
  */
-class cmd_cycle : public command_t
+class cmd_cycle : public Command
 {
  public:
-       cmd_cycle (InspIRCd* Instance) : command_t(Instance,"CYCLE", 0, 1)
+       cmd_cycle (InspIRCd* Instance) : Command(Instance,"CYCLE", 0, 1)
        {
                this->source = "m_cycle.so";
                syntax = "<channel> :[reason]";
index fd9e329cd17ad6f235d9a65ef7ab316a5e85dd25..7ddce8ab09f9f0a5e8af22e2d2a1c224156f800a 100644 (file)
@@ -44,10 +44,10 @@ dccallowlist* dl;
 typedef std::vector<BannedFileList> bannedfilelist;
 bannedfilelist bfl;
 
-class cmd_dccallow : public command_t
+class cmd_dccallow : public Command
 {
  public:
-       cmd_dccallow(InspIRCd* Me) : command_t(Me, "DCCALLOW", 0, 0)
+       cmd_dccallow(InspIRCd* Me) : Command(Me, "DCCALLOW", 0, 0)
        {
                this->source = "m_dccallow.so";
                syntax = "{[+|-]<nick> <time>|HELP|LIST}";
index f2c47cc9afe22e27e2990b17edf631314489101b..3056bdaff0474598991d2286785a4079d868d11a 100644 (file)
 
 /** Handle /DEVOICE
  */
-class cmd_devoice : public command_t
+class cmd_devoice : public Command
 {
  public:
-       cmd_devoice (InspIRCd* Instance) : command_t(Instance,"DEVOICE", 0, 1)
+       cmd_devoice (InspIRCd* Instance) : Command(Instance,"DEVOICE", 0, 1)
        {
                this->source = "m_devoice.so";
                syntax = "<channel>";
index 5e74177e5073ce59ccadd902c4d1074cd518a1c7..e0faafc98bf2b531b0ae155389e3f15a0ae08a24 100644 (file)
@@ -116,11 +116,11 @@ class FilterBase : public Module
        bool AppliesToMe(userrec* user, FilterResult* filter, int flags);
 };
 
-class cmd_filter : public command_t
+class cmd_filter : public Command
 {
        FilterBase* Base;
  public:
-       cmd_filter(FilterBase* f, InspIRCd* Me, const std::string &source) : command_t(Me, "FILTER", 'o', 1), Base(f)
+       cmd_filter(FilterBase* f, InspIRCd* Me, const std::string &source) : Command(Me, "FILTER", 'o', 1), Base(f)
        {
                this->source = source;
                this->syntax = "<filter-definition> <type> <flags> [<gline-duration>] :<reason>";
@@ -338,7 +338,7 @@ int FilterBase::OnPreCommand(const std::string &command, const char** parameters
                        return 0;
 
                /* We cant block a part or quit, so instead we change the reason to 'Reason filtered' */
-               command_t* c = ServerInstance->Parser->GetHandler(command);
+               Command* c = ServerInstance->Parser->GetHandler(command);
                if (c)
                {
                        const char* params[MAXPARAMETERS];
index faf35d5725d271e6c23e52fc2aaf2f278f779d4a..0e7ff2e6d3fbad6d9f30a1280dad27dbda3b4b96 100644 (file)
 
 /** Handle /GLOADMODULE
  */
-class cmd_gloadmodule : public command_t
+class cmd_gloadmodule : public Command
 {
  public:
-       cmd_gloadmodule (InspIRCd* Instance) : command_t(Instance,"GLOADMODULE", 'o', 1)
+       cmd_gloadmodule (InspIRCd* Instance) : Command(Instance,"GLOADMODULE", 'o', 1)
        {
                this->source = "m_globalload.so";
                syntax = "<modulename> [servermask]";
@@ -52,10 +52,10 @@ class cmd_gloadmodule : public command_t
 
 /** Handle /GUNLOADMODULE
  */
-class cmd_gunloadmodule : public command_t
+class cmd_gunloadmodule : public Command
 {
  public:
-       cmd_gunloadmodule (InspIRCd* Instance) : command_t(Instance,"GUNLOADMODULE", 'o', 1)
+       cmd_gunloadmodule (InspIRCd* Instance) : Command(Instance,"GUNLOADMODULE", 'o', 1)
        {
                this->source = "m_globalload.so";
                syntax = "<modulename> [servermask]";
@@ -86,10 +86,10 @@ class cmd_gunloadmodule : public command_t
 
 /** Handle /GRELOADMODULE
  */
-class cmd_greloadmodule : public command_t
+class cmd_greloadmodule : public Command
 {
  public:
-       cmd_greloadmodule (InspIRCd* Instance) : command_t(Instance, "GRELOADMODULE", 'o', 1)
+       cmd_greloadmodule (InspIRCd* Instance) : Command(Instance, "GRELOADMODULE", 'o', 1)
        {
                this->source = "m_globalload.so";
                syntax = "<modulename> [servermask]";
index 9908ad05399acba78b9671814577be695b6e357b..1d870a7c299d1f3dfde9cc0d3a8666ecf1fa8839 100644 (file)
 
 /** Handle /GLOBOPS
  */
-class cmd_globops : public command_t
+class cmd_globops : public Command
 {
  public:
-       cmd_globops (InspIRCd* Instance) : command_t(Instance,"GLOBOPS",'o',1)
+       cmd_globops (InspIRCd* Instance) : Command(Instance,"GLOBOPS",'o',1)
        {
                this->source = "m_globops.so";
                syntax = "<any-text>";
index b1028a042943671cbcdfbb92023d4df691853222..86866f7fbe488423653fe8a7d5243135b119144a 100644 (file)
@@ -49,10 +49,10 @@ class Helpop : public ModeHandler
 
 /** Handles /HELPOP
  */
-class cmd_helpop : public command_t
+class cmd_helpop : public Command
 {
  public:
-       cmd_helpop (InspIRCd* Instance) : command_t(Instance, "HELPOP", 0, 0)
+       cmd_helpop (InspIRCd* Instance) : Command(Instance, "HELPOP", 0, 0)
        {
                this->source = "m_helpop.so";
                syntax = "<any-text>";
index a0a2388f010697d17e075de256229fadb1aa60a4..47e9f595c300c929eb427d01d62008c3f5fcdb64 100644 (file)
@@ -221,7 +221,7 @@ class ModuleInvisible : public Module
        {
                if (user->IsModeSet('Q'))
                {
-                       command_t* parthandler = ServerInstance->Parser->GetHandler("PART");
+                       Command* parthandler = ServerInstance->Parser->GetHandler("PART");
                        std::vector<std::string> to_leave;
                        const char* parameters[2];
                        if (parthandler)
index fb8727e3a15076ec6235a6d0ffa7fc7d178c2ba7..600b8f70f2e6acfb800d9eb96ed5c66e9d5d6853 100644 (file)
@@ -17,7 +17,7 @@
 
 /** Handle /SAPART
  */
-class cmd_jumpserver : public command_t
+class cmd_jumpserver : public Command
 {
  public:
        bool redirect_all_immediately;
@@ -27,7 +27,7 @@ class cmd_jumpserver : public command_t
        std::string reason;
        int port;
 
-       cmd_jumpserver (InspIRCd* Instance) : command_t(Instance, "JUMPSERVER", 'o', 0)
+       cmd_jumpserver (InspIRCd* Instance) : Command(Instance, "JUMPSERVER", 'o', 0)
        {
                this->source = "m_jumpserver.so";
                syntax = "[<server> <port> <+/-a> :<reason>]";
index 5ed69273e2d4e82e42a69c5cd92e6585f324a626..fd82566417eb259d09abe72d2514ab79a7f07946 100644 (file)
 
 /** Handles the /KNOCK command
  */
-class cmd_knock : public command_t
+class cmd_knock : public Command
 {
  public:
-       cmd_knock (InspIRCd* Instance) : command_t(Instance,"KNOCK", 0, 2)
+       cmd_knock (InspIRCd* Instance) : Command(Instance,"KNOCK", 0, 2)
        {
                this->source = "m_knock.so";
                syntax = "<channel> <reason>";
index 94ab314212d216deccc25a3e3ffada8059621e7f..a4b7940503a49c67ba7f1f619bd401305995b72d 100644 (file)
 */
 
 
-class cmd_lockserv : public command_t
+class cmd_lockserv : public Command
 {
 private:
        bool& locked;
 
 public:
        cmd_lockserv (InspIRCd* Instance, bool &lock)
-       : command_t(Instance, "LOCKSERV", 'o', 0), locked(lock)
+       : Command(Instance, "LOCKSERV", 'o', 0), locked(lock)
        {
                this->source = "m_lockserv.so";
                syntax.clear();
@@ -44,14 +44,14 @@ public:
        }
 };
 
-class cmd_unlockserv : public command_t
+class cmd_unlockserv : public Command
 {
 private:
        bool& locked;
 
 public:
        cmd_unlockserv (InspIRCd* Instance, bool &lock)
-       : command_t(Instance, "UNLOCKSERV", 'o', 0), locked(lock)
+       : Command(Instance, "UNLOCKSERV", 'o', 0), locked(lock)
        {
                this->source = "m_lockserv.so";
                syntax.clear();
index 731c0433dd165012c5889a423891e323e8ef1bc6..e21ea9b90c773ac7271c959e0c1e2d78c6c2bbf8 100644 (file)
 
 /** Handle /NICKLOCK
  */
-class cmd_nicklock : public command_t
+class cmd_nicklock : public Command
 {
        char* dummy;
  public:
-       cmd_nicklock (InspIRCd* Instance) : command_t(Instance,"NICKLOCK", 'o', 2)
+       cmd_nicklock (InspIRCd* Instance) : Command(Instance,"NICKLOCK", 'o', 2)
        {
                this->source = "m_nicklock.so";
                syntax = "<oldnick> <newnick>";
@@ -72,10 +72,10 @@ class cmd_nicklock : public command_t
 
 /** Handle /NICKUNLOCK
  */
-class cmd_nickunlock : public command_t
+class cmd_nickunlock : public Command
 {
  public:
-       cmd_nickunlock (InspIRCd* Instance) : command_t(Instance,"NICKUNLOCK", 'o', 1)
+       cmd_nickunlock (InspIRCd* Instance) : Command(Instance,"NICKUNLOCK", 'o', 1)
        {
                this->source = "m_nicklock.so";
                syntax = "<locked-nick>";
index d8acc3ef96b9e8d4cc001536d1bd706e2ad42fc4..66fa1e61efa6cf3af462209912c1235a05e5f3c6 100644 (file)
@@ -21,14 +21,14 @@ typedef std::map<irc::string, Module*> hashymodules;
 
 /* Handle /MKPASSWD
  */
-class cmd_mkpasswd : public command_t
+class cmd_mkpasswd : public Command
 {
        Module* Sender;
        hashymodules &hashers;
        std::deque<std::string> &names;
  public:
        cmd_mkpasswd (InspIRCd* Instance, Module* S, hashymodules &h, std::deque<std::string> &n)
-               : command_t(Instance,"MKPASSWD", 'o', 2), Sender(S), hashers(h), names(n)
+               : Command(Instance,"MKPASSWD", 'o', 2), Sender(S), hashers(h), names(n)
        {
                this->source = "m_oper_hash.so";
                syntax = "<hashtype> <any-text>";
index b02689704e8beed68dc59861ff503f3295d0f664..09395fccb29e6eecbcdc80f76326d100da745066 100644 (file)
@@ -47,7 +47,7 @@ class ModuleOperLog : public Module
  
                if ((IS_OPER(user)) && (IS_LOCAL(user)) && (user->HasPermission(command)))
                {
-                       command_t* thiscommand = ServerInstance->Parser->GetHandler(command);
+                       Command* thiscommand = ServerInstance->Parser->GetHandler(command);
                        if ((thiscommand) && (thiscommand->flags_needed == 'o'))
                        {
                                std::string plist;
index 6de81641360ec9db495a5ba19adf3a8e32c0b649..2ae4c30b59d232572c5d6506ff321f442e96cb2c 100644 (file)
@@ -40,10 +40,10 @@ CmdResult ShowOperMOTD(userrec* user)
 
 /** Handle /OPERMOTD
  */
-class cmd_opermotd : public command_t
+class cmd_opermotd : public Command
 {
  public:
-       cmd_opermotd (InspIRCd* Instance) : command_t(Instance,"OPERMOTD", 'o', 0)
+       cmd_opermotd (InspIRCd* Instance) : Command(Instance,"OPERMOTD", 'o', 0)
        {
                this->source = "m_opermotd.so";
                syntax = "[<servername>]";
index 5f8d52714ba4b997ffc43000253fa4197de826e1..96ed2758eec5e37685c9f1b1c4403850d684bcc1 100644 (file)
@@ -23,10 +23,10 @@ std::string suffix;
 
 /** Handle /RANDQUOTE
  */
-class cmd_randquote : public command_t
+class cmd_randquote : public Command
 {
  public:
-       cmd_randquote (InspIRCd* Instance) : command_t(Instance,"RANDQUOTE", 0, 0)
+       cmd_randquote (InspIRCd* Instance) : Command(Instance,"RANDQUOTE", 0, 0)
        {
                this->source = "m_randquote.so";
        }
index c8d661890bfb6f5c079265961cb0a91b8f46782c..9de0942c17102e648919ea89f400ab511641d229 100644 (file)
@@ -203,10 +203,10 @@ class RemoveBase
 
 /** Handle /REMOVE
  */
-class cmd_remove : public command_t, public RemoveBase
+class cmd_remove : public Command, public RemoveBase
 {
  public:
-       cmd_remove(InspIRCd* Instance, bool& snk) : command_t(Instance, "REMOVE", 0, 2), RemoveBase(Instance, snk)
+       cmd_remove(InspIRCd* Instance, bool& snk) : Command(Instance, "REMOVE", 0, 2), RemoveBase(Instance, snk)
        {
                this->source = "m_remove.so";
                syntax = "<nick> <channel> [<reason>]";
@@ -221,10 +221,10 @@ class cmd_remove : public command_t, public RemoveBase
 
 /** Handle /FPART
  */
-class cmd_fpart : public command_t, public RemoveBase
+class cmd_fpart : public Command, public RemoveBase
 {
  public:
-       cmd_fpart(InspIRCd* Instance, bool& snk) : command_t(Instance, "FPART", 0, 2), RemoveBase(Instance, snk)
+       cmd_fpart(InspIRCd* Instance, bool& snk) : Command(Instance, "FPART", 0, 2), RemoveBase(Instance, snk)
        {
                this->source = "m_remove.so";
                syntax = "<channel> <nick> [<reason>]";
index d0567cb166d1c2f9554ec8f20ca447c35f1ff0b4..03bf7c47cc966e88013c996118163e5cd71f5b69 100644 (file)
 
 /** Handle /SAJOIN
  */
-class cmd_sajoin : public command_t
+class cmd_sajoin : public Command
 {
  public:
- cmd_sajoin (InspIRCd* Instance) : command_t(Instance,"SAJOIN", 'o', 2)
+ cmd_sajoin (InspIRCd* Instance) : Command(Instance,"SAJOIN", 'o', 2)
        {
                this->source = "m_sajoin.so";
                syntax = "<nick> <channel>";
index bb0394fb01d12ecfd815c904e6ba11d8ae5f35b2..a083f43054a70d586d488ff6c5459f1487b0e09a 100644 (file)
 
 /** Handle /SAMODE
  */
-class cmd_samode : public command_t
+class cmd_samode : public Command
 {
  public:
-       cmd_samode (InspIRCd* Instance) : command_t(Instance,"SAMODE", 'o', 2)
+       cmd_samode (InspIRCd* Instance) : Command(Instance,"SAMODE", 'o', 2)
        {
                this->source = "m_samode.so";
                syntax = "<target> <modes> {<mode-parameters>}";
index de70579f95549c15b85e91a707602a4f489956e7..e4f2006c447253257a8ad1232b9836e7de56cfe3 100644 (file)
 
 /** Handle /SANICK
  */
-class cmd_sanick : public command_t
+class cmd_sanick : public Command
 {
  public:
- cmd_sanick (InspIRCd* Instance) : command_t(Instance,"SANICK", 'o', 2)
+ cmd_sanick (InspIRCd* Instance) : Command(Instance,"SANICK", 'o', 2)
        {
                this->source = "m_sanick.so";
                syntax = "<nick> <new-nick>";
index 32cd751b07608d74071694893a6b3ec71710de9b..0c4d061e1a5241e96bb86cfbae096e36900ca707 100644 (file)
 
 /** Handle /SAPART
  */
-class cmd_sapart : public command_t
+class cmd_sapart : public Command
 {
  public:
-       cmd_sapart (InspIRCd* Instance) : command_t(Instance,"SAPART", 'o', 2)
+       cmd_sapart (InspIRCd* Instance) : Command(Instance,"SAPART", 'o', 2)
        {
                this->source = "m_sapart.so";
                syntax = "<nick> <channel>";
index 7aafcc19376c0b266dea795334cf7642542ce953..7f4212d805dda296c878d9b803b33b85c5ea9e1e 100644 (file)
 
 /** Handle /SAQUIT
  */
-class cmd_saquit : public command_t
+class cmd_saquit : public Command
 {
  public:
- cmd_saquit (InspIRCd* Instance) : command_t(Instance,"SAQUIT",'o',2)
+ cmd_saquit (InspIRCd* Instance) : Command(Instance,"SAQUIT",'o',2)
        {
                this->source = "m_saquit.so";
                syntax = "<nick> <reason>";
index 730909d6cc74f2d1b2af8b7ecfa22761ac706010..59b48fbc1c1ae4980eb2c92245f229e6fe9a9e05 100644 (file)
 
 /** Handle /SETHOST
  */
-class cmd_sethost : public command_t
+class cmd_sethost : public Command
 {
  private:
        char* hostmap;
  public:
-       cmd_sethost (InspIRCd* Instance, char* hmap) : command_t(Instance,"SETHOST",'o',1), hostmap(hmap)
+       cmd_sethost (InspIRCd* Instance, char* hmap) : Command(Instance,"SETHOST",'o',1), hostmap(hmap)
        {
                this->source = "m_sethost.so";
                syntax = "<new-hostname>";
index a353f883c77b66a480815b6b8e3bd8b6fee84b95..4a19b8412a54b7712ef5f3a53fd57200ce7ff686 100644 (file)
 
 /** Handle /SETIDENT
  */
-class cmd_setident : public command_t
+class cmd_setident : public Command
 {
  public:
- cmd_setident (InspIRCd* Instance) : command_t(Instance,"SETIDENT", 'o', 1)
+ cmd_setident (InspIRCd* Instance) : Command(Instance,"SETIDENT", 'o', 1)
        {
                this->source = "m_setident.so";
                syntax = "<new-ident>";
index d95a9bfc1b7da86591e5e2253fcb1ec6eb71d124..6dbcae7111ba692cc812fc538903a5a6354d697b 100644 (file)
 
 /** Handle /SETIDLE
  */
-class cmd_setidle : public command_t
+class cmd_setidle : public Command
 {
  public:
-       cmd_setidle (InspIRCd* Instance) : command_t(Instance,"SETIDLE", 'o', 1)
+       cmd_setidle (InspIRCd* Instance) : Command(Instance,"SETIDLE", 'o', 1)
        {
                this->source = "m_setidle.so";
                syntax = "<duration>";
index fb439db6f51be16f29e096515f0400cd39e392d7..80179c8cb073dc2143116bb59178372d65efc652 100644 (file)
 
 
 
-class cmd_setname : public command_t
+class cmd_setname : public Command
 {
  public:
-       cmd_setname (InspIRCd* Instance) : command_t(Instance,"SETNAME", 0, 1)
+       cmd_setname (InspIRCd* Instance) : Command(Instance,"SETNAME", 0, 1)
        {
                this->source = "m_setname.so";
                syntax = "<new-gecos>";
index f809d7d5762e0ed545b989f4b668e61d20df9e75..1bea10b70885936bae8000876c2f0d4f3089c9a9 100644 (file)
 // have one of these structures associated with their user record.
 typedef std::map<irc::string, time_t> silencelist;
 
-class cmd_silence : public command_t
+class cmd_silence : public Command
 {
        unsigned int& maxsilence;
  public:
-       cmd_silence (InspIRCd* Instance, unsigned int &max) : command_t(Instance,"SILENCE", 0, 0), maxsilence(max)
+       cmd_silence (InspIRCd* Instance, unsigned int &max) : Command(Instance,"SILENCE", 0, 0), maxsilence(max)
        {
                this->source = "m_silence.so";
                syntax = "{[+|-]<mask>}";
index 9a3abe543b5dfd7521fba1f29d655cef171569cf..e9a4fdc785e621479be6351625890fa06506f15f 100644 (file)
@@ -51,11 +51,11 @@ static int SILENCE_ALL              = 0x0020; /* a  all, (pcint)          */
 static int SILENCE_EXCLUDE     = 0x0040; /* x  exclude this pattern  */
 
 
-class cmd_silence : public command_t
+class cmd_silence : public Command
 {
        unsigned int& maxsilence;
  public:
-       cmd_silence (InspIRCd* Instance, unsigned int &max) : command_t(Instance,"SILENCE", 0, 0), maxsilence(max)
+       cmd_silence (InspIRCd* Instance, unsigned int &max) : Command(Instance,"SILENCE", 0, 0), maxsilence(max)
        {
                this->source = "m_silence_ext.so";
                syntax = "{[+|-]<mask> <p|c|i|n|t|a|x>}";
index 029b826bc7f3188f96ed6de527fac6abf3031342..f538e29633609138ee637026b9dc7f8684c6224e 100644 (file)
@@ -38,7 +38,7 @@ void ModuleSpanningTree::OnPostCommand(const std::string &command, const char**
        if ((result == CMD_SUCCESS) && (ServerInstance->IsValidModuleCommand(command, pcnt, user)))
        {
                /* Safe, we know its non-null because IsValidModuleCommand returned true */
-               command_t* thiscmd = ServerInstance->Parser->GetHandler(command);
+               Command* thiscmd = ServerInstance->Parser->GetHandler(command);
                // this bit of code cleverly routes all module commands
                // to all remote severs *automatically* so that modules
                // can just handle commands locally, without having
index e992554edbea3d9ff6321f43eb8153510858bfdd..25bf833e13a891d42feaab0a53901ad10d56a45a 100644 (file)
@@ -30,7 +30,7 @@
 
 /* $ModDep: m_spanningtree/timesynctimer.h m_spanningtree/resolvers.h m_spanningtree/main.h m_spanningtree/utils.h m_spanningtree/treeserver.h m_spanningtree/link.h m_spanningtree/treesocket.h m_spanningtree/rconnect.h */
 
-cmd_rconnect::cmd_rconnect (InspIRCd* Instance, Module* Callback, SpanningTreeUtilities* Util) : command_t(Instance, "RCONNECT", 'o', 2), Creator(Callback), Utils(Util)
+cmd_rconnect::cmd_rconnect (InspIRCd* Instance, Module* Callback, SpanningTreeUtilities* Util) : Command(Instance, "RCONNECT", 'o', 2), Creator(Callback), Utils(Util)
 {
        this->source = "m_spanningtree.so";
        syntax = "<remote-server-mask> <target-server-mask>";
index 77e271949f76e95b972962ea5796f36d25fd7b06..080d2aad6f8b1de2f3fd9a0237722771cd9c5c83 100644 (file)
@@ -16,7 +16,7 @@
 
 /** Handle /RCONNECT
  */
-class cmd_rconnect : public command_t
+class cmd_rconnect : public Command
 {
         Module* Creator;               /* Creator */
         SpanningTreeUtilities* Utils;  /* Utility class */
index 0ea7988ec315a3a0cd402ee1e7ea9d8af5c3d523..8c7e9d7f945251b3178185c82733a00e11d166eb 100644 (file)
@@ -30,7 +30,7 @@
 
 /* $ModDep: m_spanningtree/timesynctimer.h m_spanningtree/resolvers.h m_spanningtree/main.h m_spanningtree/utils.h m_spanningtree/treeserver.h m_spanningtree/link.h m_spanningtree/treesocket.h m_spanningtree/rsquit.h */
 
-cmd_rsquit::cmd_rsquit (InspIRCd* Instance, Module* Callback, SpanningTreeUtilities* Util) : command_t(Instance, "RSQUIT", 'o', 1), Creator(Callback), Utils(Util)
+cmd_rsquit::cmd_rsquit (InspIRCd* Instance, Module* Callback, SpanningTreeUtilities* Util) : Command(Instance, "RSQUIT", 'o', 1), Creator(Callback), Utils(Util)
 {
        this->source = "m_spanningtree.so";
        syntax = "<remote-server-mask> [target-server-mask]";
index 81e9bc2b7237b3eb9fc5798659f2fc94ebbbbfb8..d6285b83f7c1f740e1578f2f54a366d759469655 100644 (file)
@@ -16,7 +16,7 @@
 
 /** Handle /RCONNECT
  */
-class cmd_rsquit : public command_t
+class cmd_rsquit : public Command
 {
         Module* Creator;               /* Creator */
         SpanningTreeUtilities* Utils;  /* Utility class */
index 60b893e1d39447622bd96c0d750594d9cac597e3..8e42f9c75529cddbadb94ee94511168941e2dc6d 100644 (file)
@@ -63,10 +63,10 @@ void spy_userlist(userrec *user, chanrec *c)
 
 /** Handle /SPYLIST
  */
-class cmd_spylist : public command_t
+class cmd_spylist : public Command
 {
   public:
-       cmd_spylist (InspIRCd* Instance) : command_t(Instance,"SPYLIST", 'o', 0)
+       cmd_spylist (InspIRCd* Instance) : Command(Instance,"SPYLIST", 'o', 0)
        {
                this->source = "m_spy.so";
                syntax.clear();
@@ -91,10 +91,10 @@ class cmd_spylist : public command_t
 
 /** Handle /SPYNAMES
  */
-class cmd_spynames : public command_t
+class cmd_spynames : public Command
 {
   public:
-       cmd_spynames (InspIRCd* Instance) : command_t(Instance,"SPYNAMES", 'o', 0)
+       cmd_spynames (InspIRCd* Instance) : Command(Instance,"SPYNAMES", 'o', 0)
        {
                this->source = "m_spy.so";
                syntax = "{<channel>{,<channel>}}";
index 4027dbeb790206f1042a0b2d7dfbbc1dbb22fd7d..f26454d3e0017c33b68223fbc3ba09e334e7cff9 100644 (file)
@@ -47,10 +47,10 @@ SVSHoldMap HoldMap;
 
 /** Handle /SVSHold
  */
-class cmd_svshold : public command_t
+class cmd_svshold : public Command
 {
  public:
-       cmd_svshold(InspIRCd* Me) : command_t(Me, "SVSHOLD", 'o', 1)
+       cmd_svshold(InspIRCd* Me) : Command(Me, "SVSHOLD", 'o', 1)
        {
                this->source = "m_svshold.so";
                this->syntax = "<nickname> [<duration> :<reason>]";
index 09d9d94afc2a1a18a769547c69fae81abe83b28f..3e8c53ea13cbad1bcc88d4ff67823e25e6b27c0a 100644 (file)
 
 /** Handle /SWHOIS
  */
-class cmd_swhois : public command_t
+class cmd_swhois : public Command
 {
        
  public:
-       cmd_swhois (InspIRCd* Instance) : command_t(Instance,"SWHOIS",'o',2)
+       cmd_swhois (InspIRCd* Instance) : Command(Instance,"SWHOIS",'o',2)
        {
                this->source = "m_swhois.so";
                syntax = "<nick> <swhois>";
index a137e8d90d15a266a444b0bdbf60118f5636ced7..da8ad97492fb24e17b93c37a2de4d1657df8f24e 100644 (file)
 
 /** Handle /TAXONOMY
  */
-class cmd_taxonomy : public command_t
+class cmd_taxonomy : public Command
 {
        Module* Creator;
        bool& claimed;
  public:
        /* Command 'taxonomy', takes no parameters and needs no special modes */
-       cmd_taxonomy (InspIRCd* Instance, Module* maker, bool &claim) : command_t(Instance,"TAXONOMY", 'o', 1), Creator(maker), claimed(claim)
+       cmd_taxonomy (InspIRCd* Instance, Module* maker, bool &claim) : Command(Instance,"TAXONOMY", 'o', 1), Creator(maker), claimed(claim)
        {
                this->source = "m_taxonomy.so";
                syntax = "<nickname>";
index f2a0fb5fdceb363c5a762f91a741d8c20abed5eb..d99a51c7d4deeeef9d3cab48e50b3d1f1d9fe626 100644 (file)
 
 /** Handle /DALINFO
  */
-class cmd_dalinfo : public command_t
+class cmd_dalinfo : public Command
 {
  public:
        /* Command 'dalinfo', takes no parameters and needs no special modes */
-       cmd_dalinfo (InspIRCd* Instance) : command_t(Instance,"DALINFO", 0, 0)
+       cmd_dalinfo (InspIRCd* Instance) : Command(Instance,"DALINFO", 0, 0)
        {
                this->source = "m_testcommand.so";
        }
index 58dffbbe44be41c9493d81f32b13cef6b1dd1666..714b8b40ab0f5aebec7f4a7b608712b385bbc264 100644 (file)
@@ -30,10 +30,10 @@ timedbans TimedBanList;
 
 /** Handle /TBAN
  */
-class cmd_tban : public command_t
+class cmd_tban : public Command
 {
  public:
- cmd_tban (InspIRCd* Instance) : command_t(Instance,"TBAN", 0, 3)
+ cmd_tban (InspIRCd* Instance) : Command(Instance,"TBAN", 0, 3)
        {
                this->source = "m_timedbans.so";
                syntax = "<channel> <duration> <banmask>";
index 3296a7f152e5f2febc32b4bc6818fe87a03874ac..bfeeb202ede6d4108d2ca9632c2dc1318ea1f4d9 100644 (file)
 
 /** Handle /TLINE
  */ 
-class cmd_tline : public command_t
+class cmd_tline : public Command
 {
  public:
-       cmd_tline (InspIRCd* Instance) : command_t(Instance,"TLINE", 'o', 1)
+       cmd_tline (InspIRCd* Instance) : Command(Instance,"TLINE", 'o', 1)
        {
                this->source = "m_tline.so";
                this->syntax = "<mask>";
index cd3296ce649f90c812f0437a0dcee3fecacefc65..7e13a63f93a16b8d9c1329f6a1ac267e5220b376 100644 (file)
 
 /** Handle /UNINVITE
  */     
-class cmd_uninvite : public command_t
+class cmd_uninvite : public Command
 {
  public:
-       cmd_uninvite (InspIRCd* Instance) : command_t(Instance,"UNINVITE", 0, 2)
+       cmd_uninvite (InspIRCd* Instance) : Command(Instance,"UNINVITE", 0, 2)
        {
                this->source = "m_uninvite.so";
                syntax = "<nick> <channel>";
index 81e2cf6c8ab956fe8ae4aca03b49b0c9506f4f4e..949ce758e9f7c3e634e849458a381d6f9d7e09ea 100644 (file)
 
 /** Handle /USERIP
  */
-class cmd_userip : public command_t
+class cmd_userip : public Command
 {
  public:
-       cmd_userip (InspIRCd* Instance) : command_t(Instance,"USERIP", 'o', 1)
+       cmd_userip (InspIRCd* Instance) : Command(Instance,"USERIP", 'o', 1)
        {
                this->source = "m_userip.so";
                syntax = "<nick>{,<nick>}";
index 71f1069a3eb4557ed6566bca18acee74f48ae8ac..92aeb3401e2939b1a3bb97eab9d2e5742e60a3eb 100644 (file)
 
 /** Handle /VHOST
  */
-class cmd_vhost : public command_t
+class cmd_vhost : public Command
 {
  public:
-       cmd_vhost (InspIRCd* Instance) : command_t(Instance,"VHOST", 0, 2)
+       cmd_vhost (InspIRCd* Instance) : Command(Instance,"VHOST", 0, 2)
        {
                this->source = "m_vhost.so";
                syntax = "<username> <password>";
index caad37049facd1fa2b10801d7ddd47c768dd2144..a090487f30b8169fcee25d13be69720dbcde7f3d 100644 (file)
@@ -76,7 +76,7 @@ watchentries* whos_watching_me;
 
 /** Handle /WATCH
  */
-class cmd_watch : public command_t
+class cmd_watch : public Command
 {
        unsigned int& MAX_WATCH;
  public:
@@ -192,7 +192,7 @@ class cmd_watch : public command_t
                return CMD_FAILURE;
        }
 
-       cmd_watch (InspIRCd* Instance, unsigned int &maxwatch) : command_t(Instance,"WATCH",0,0), MAX_WATCH(maxwatch)
+       cmd_watch (InspIRCd* Instance, unsigned int &maxwatch) : Command(Instance,"WATCH",0,0), MAX_WATCH(maxwatch)
        {
                this->source = "m_watch.so";
                syntax = "[C|L|S]|[+|-<nick>]";
index feadc7b180da0f52ee173509330c9632122767f9..d3f6d6075d90555e940c3cdcf621cae5d81bdf07 100644 (file)
@@ -857,7 +857,7 @@ void userrec::QuitUser(InspIRCd* Instance, userrec *user, const std::string &qui
 /* adds or updates an entry in the whowas list */
 void userrec::AddToWhoWas()
 {
-       command_t* whowas_command = ServerInstance->Parser->GetHandler("WHOWAS");
+       Command* whowas_command = ServerInstance->Parser->GetHandler("WHOWAS");
        if (whowas_command)
        {
                std::deque<classbase*> params;
@@ -1203,7 +1203,7 @@ bool userrec::ForceNickChange(const char* newnick)
                if (this->registered == REG_ALL)
                {
                        std::deque<classbase*> dummy;
-                       command_t* nickhandler = ServerInstance->Parser->GetHandler("NICK");
+                       Command* nickhandler = ServerInstance->Parser->GetHandler("NICK");
                        if (nickhandler)
                        {
                                nickhandler->HandleInternal(1, dummy);