From b669f920eaa9fb795d0a103d724943898a0df4b2 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 21 Oct 2007 21:43:48 +0000 Subject: Another big commit, just to please all my fans out there.. cmd_* -> Command*. Muahaha. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8290 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/commands/cmd_admin.h | 4 ++-- include/commands/cmd_away.h | 4 ++-- include/commands/cmd_clearcache.h | 4 ++-- include/commands/cmd_commands.h | 4 ++-- include/commands/cmd_connect.h | 4 ++-- include/commands/cmd_die.h | 4 ++-- include/commands/cmd_eline.h | 4 ++-- include/commands/cmd_gline.h | 4 ++-- include/commands/cmd_info.h | 4 ++-- include/commands/cmd_invite.h | 4 ++-- include/commands/cmd_ison.h | 4 ++-- include/commands/cmd_join.h | 4 ++-- include/commands/cmd_kick.h | 4 ++-- include/commands/cmd_kill.h | 4 ++-- include/commands/cmd_kline.h | 4 ++-- include/commands/cmd_links.h | 4 ++-- include/commands/cmd_list.h | 4 ++-- include/commands/cmd_loadmodule.h | 4 ++-- include/commands/cmd_lusers.h | 4 ++-- include/commands/cmd_map.h | 4 ++-- include/commands/cmd_mode.h | 4 ++-- include/commands/cmd_modules.h | 4 ++-- include/commands/cmd_motd.h | 4 ++-- include/commands/cmd_names.h | 4 ++-- include/commands/cmd_nick.h | 4 ++-- include/commands/cmd_notice.h | 4 ++-- include/commands/cmd_oper.h | 4 ++-- include/commands/cmd_part.h | 4 ++-- include/commands/cmd_pass.h | 4 ++-- include/commands/cmd_ping.h | 4 ++-- include/commands/cmd_pong.h | 4 ++-- include/commands/cmd_privmsg.h | 4 ++-- include/commands/cmd_qline.h | 4 ++-- include/commands/cmd_quit.h | 4 ++-- include/commands/cmd_rehash.h | 4 ++-- include/commands/cmd_reloadmodule.h | 4 ++-- include/commands/cmd_restart.h | 4 ++-- include/commands/cmd_rules.h | 4 ++-- include/commands/cmd_server.h | 4 ++-- include/commands/cmd_squit.h | 4 ++-- include/commands/cmd_stats.h | 4 ++-- include/commands/cmd_time.h | 4 ++-- include/commands/cmd_topic.h | 4 ++-- include/commands/cmd_trace.h | 4 ++-- include/commands/cmd_unloadmodule.h | 4 ++-- include/commands/cmd_user.h | 4 ++-- include/commands/cmd_userhost.h | 4 ++-- include/commands/cmd_version.h | 4 ++-- include/commands/cmd_wallops.h | 4 ++-- include/commands/cmd_who.h | 4 ++-- include/commands/cmd_whois.h | 4 ++-- include/commands/cmd_whowas.h | 6 +++--- include/commands/cmd_zline.h | 4 ++-- src/cmd_admin.cpp | 4 ++-- src/cmd_away.cpp | 4 ++-- src/cmd_clearcache.cpp | 4 ++-- src/cmd_commands.cpp | 4 ++-- src/cmd_connect.cpp | 4 ++-- src/cmd_die.cpp | 4 ++-- src/cmd_eline.cpp | 4 ++-- src/cmd_gline.cpp | 4 ++-- src/cmd_info.cpp | 4 ++-- src/cmd_invite.cpp | 4 ++-- src/cmd_ison.cpp | 4 ++-- src/cmd_join.cpp | 4 ++-- src/cmd_kick.cpp | 4 ++-- src/cmd_kill.cpp | 4 ++-- src/cmd_kline.cpp | 4 ++-- src/cmd_links.cpp | 4 ++-- src/cmd_list.cpp | 4 ++-- src/cmd_loadmodule.cpp | 4 ++-- src/cmd_lusers.cpp | 4 ++-- src/cmd_map.cpp | 4 ++-- src/cmd_mode.cpp | 4 ++-- src/cmd_modules.cpp | 4 ++-- src/cmd_motd.cpp | 4 ++-- src/cmd_names.cpp | 4 ++-- src/cmd_nick.cpp | 6 +++--- src/cmd_notice.cpp | 4 ++-- src/cmd_oper.cpp | 4 ++-- src/cmd_part.cpp | 4 ++-- src/cmd_pass.cpp | 4 ++-- src/cmd_ping.cpp | 4 ++-- src/cmd_pong.cpp | 4 ++-- src/cmd_privmsg.cpp | 4 ++-- src/cmd_qline.cpp | 4 ++-- src/cmd_quit.cpp | 4 ++-- src/cmd_rehash.cpp | 4 ++-- src/cmd_reloadmodule.cpp | 4 ++-- src/cmd_restart.cpp | 4 ++-- src/cmd_rules.cpp | 4 ++-- src/cmd_server.cpp | 4 ++-- src/cmd_squit.cpp | 4 ++-- src/cmd_stats.cpp | 4 ++-- src/cmd_time.cpp | 4 ++-- src/cmd_topic.cpp | 4 ++-- src/cmd_trace.cpp | 4 ++-- src/cmd_unloadmodule.cpp | 4 ++-- src/cmd_user.cpp | 4 ++-- src/cmd_userhost.cpp | 4 ++-- src/cmd_version.cpp | 4 ++-- src/cmd_wallops.cpp | 4 ++-- src/cmd_who.cpp | 10 +++++----- src/cmd_whois.cpp | 4 ++-- src/cmd_whowas.cpp | 18 +++++++++--------- src/cmd_zline.cpp | 4 ++-- src/modules/m_alltime.cpp | 8 ++++---- src/modules/m_cban.cpp | 8 ++++---- src/modules/m_cgiirc.cpp | 8 ++++---- src/modules/m_check.cpp | 8 ++++---- src/modules/m_chghost.cpp | 8 ++++---- src/modules/m_chgident.cpp | 8 ++++---- src/modules/m_chgname.cpp | 8 ++++---- src/modules/m_clones.cpp | 8 ++++---- src/modules/m_close.cpp | 8 ++++---- src/modules/m_customtitle.cpp | 8 ++++---- src/modules/m_cycle.cpp | 8 ++++---- src/modules/m_dccallow.cpp | 8 ++++---- src/modules/m_devoice.cpp | 8 ++++---- src/modules/m_filter.h | 10 +++++----- src/modules/m_globalload.cpp | 24 ++++++++++++------------ src/modules/m_globops.cpp | 8 ++++---- src/modules/m_helpop.cpp | 8 ++++---- src/modules/m_jumpserver.cpp | 8 ++++---- src/modules/m_knock.cpp | 8 ++++---- src/modules/m_lockserv.cpp | 16 ++++++++-------- src/modules/m_nicklock.cpp | 16 ++++++++-------- src/modules/m_oper_hash.cpp | 8 ++++---- src/modules/m_opermotd.cpp | 8 ++++---- src/modules/m_randquote.cpp | 8 ++++---- src/modules/m_remove.cpp | 16 ++++++++-------- src/modules/m_sajoin.cpp | 8 ++++---- src/modules/m_samode.cpp | 8 ++++---- src/modules/m_sanick.cpp | 8 ++++---- src/modules/m_sapart.cpp | 8 ++++---- src/modules/m_saquit.cpp | 8 ++++---- src/modules/m_sethost.cpp | 8 ++++---- src/modules/m_setident.cpp | 8 ++++---- src/modules/m_setidle.cpp | 8 ++++---- src/modules/m_setname.cpp | 8 ++++---- src/modules/m_silence.cpp | 8 ++++---- src/modules/m_silence_ext.cpp | 8 ++++---- src/modules/m_spy.cpp | 16 ++++++++-------- src/modules/m_svshold.cpp | 8 ++++---- src/modules/m_swhois.cpp | 8 ++++---- src/modules/m_taxonomy.cpp | 8 ++++---- src/modules/m_testcommand.cpp | 8 ++++---- src/modules/m_timedbans.cpp | 8 ++++---- src/modules/m_tline.cpp | 8 ++++---- src/modules/m_uninvite.cpp | 8 ++++---- src/modules/m_userip.cpp | 8 ++++---- src/modules/m_vhost.cpp | 8 ++++---- src/modules/m_watch.cpp | 8 ++++---- 153 files changed, 437 insertions(+), 437 deletions(-) diff --git a/include/commands/cmd_admin.h b/include/commands/cmd_admin.h index 8b85a3e95..e569e8fce 100644 --- a/include/commands/cmd_admin.h +++ b/include/commands/cmd_admin.h @@ -22,12 +22,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_admin : public Command +class CommandAdmin : public Command { public: /** Constructor for admin. */ - cmd_admin (InspIRCd* Instance) : Command(Instance,"ADMIN",0,0) { syntax = "[]"; } + CommandAdmin (InspIRCd* Instance) : Command(Instance,"ADMIN",0,0) { syntax = "[]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_away.h b/include/commands/cmd_away.h index 29255d936..33efeb67f 100644 --- a/include/commands/cmd_away.h +++ b/include/commands/cmd_away.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_away : public Command +class CommandAway : public Command { public: /** Constructor for away. */ - cmd_away (InspIRCd* Instance) : Command(Instance,"AWAY",0,0) { syntax = "[]"; } + CommandAway (InspIRCd* Instance) : Command(Instance,"AWAY",0,0) { syntax = "[]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_clearcache.h b/include/commands/cmd_clearcache.h index 0af086609..17e4bd066 100644 --- a/include/commands/cmd_clearcache.h +++ b/include/commands/cmd_clearcache.h @@ -23,12 +23,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_clearcache : public Command +class CommandClearcache : public Command { public: /** Constructor for clearcache. */ - cmd_clearcache (InspIRCd* Instance) : Command(Instance,"CLEARCACHE",'o',0) { } + CommandClearcache (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 diff --git a/include/commands/cmd_commands.h b/include/commands/cmd_commands.h index 03a6c08ba..4e880c950 100644 --- a/include/commands/cmd_commands.h +++ b/include/commands/cmd_commands.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_commands : public Command +class CommandCommands : public Command { public: /** Constructor for commands. */ - cmd_commands (InspIRCd* Instance) : Command(Instance,"COMMANDS",0,0) { } + CommandCommands (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 diff --git a/include/commands/cmd_connect.h b/include/commands/cmd_connect.h index 97c4931a3..a3e8f3570 100644 --- a/include/commands/cmd_connect.h +++ b/include/commands/cmd_connect.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_connect : public Command +class CommandConnect : public Command { public: /** Constructor for connect. */ - cmd_connect (InspIRCd* Instance) : Command(Instance,"CONNECT",'o',1,false,0) { syntax = " []"; } + CommandConnect (InspIRCd* Instance) : Command(Instance,"CONNECT",'o',1,false,0) { syntax = " []"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_die.h b/include/commands/cmd_die.h index c078f67b7..e332deab5 100644 --- a/include/commands/cmd_die.h +++ b/include/commands/cmd_die.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_die : public Command +class CommandDie : public Command { public: /** Constructor for die. */ - cmd_die (InspIRCd* Instance) : Command(Instance,"DIE",'o',1,false,0) { syntax = ""; } + CommandDie (InspIRCd* Instance) : Command(Instance,"DIE",'o',1,false,0) { syntax = ""; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_eline.h b/include/commands/cmd_eline.h index 25c403be4..f4518b57e 100644 --- a/include/commands/cmd_eline.h +++ b/include/commands/cmd_eline.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_eline : public Command +class CommandEline : public Command { public: /** Constructor for eline. */ - cmd_eline (InspIRCd* Instance) : Command(Instance,"ELINE",'o',1) { syntax = " [ :]"; } + CommandEline (InspIRCd* Instance) : Command(Instance,"ELINE",'o',1) { syntax = " [ :]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_gline.h b/include/commands/cmd_gline.h index 8a9891a30..2fd5de48b 100644 --- a/include/commands/cmd_gline.h +++ b/include/commands/cmd_gline.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_gline : public Command +class CommandGline : public Command { public: /** Constructor for gline. */ - cmd_gline (InspIRCd* Instance) : Command(Instance,"GLINE",'o',1,false,0) { syntax = " [ :]"; } + CommandGline (InspIRCd* Instance) : Command(Instance,"GLINE",'o',1,false,0) { syntax = " [ :]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_info.h b/include/commands/cmd_info.h index 578a83217..4fae27769 100644 --- a/include/commands/cmd_info.h +++ b/include/commands/cmd_info.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_info : public Command +class CommandInfo : public Command { public: /** Constructor for info. */ - cmd_info (InspIRCd* Instance) : Command(Instance,"INFO",0,0) { syntax = "[]"; } + CommandInfo (InspIRCd* Instance) : Command(Instance,"INFO",0,0) { syntax = "[]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_invite.h b/include/commands/cmd_invite.h index 4232e10d5..2808809ec 100644 --- a/include/commands/cmd_invite.h +++ b/include/commands/cmd_invite.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_invite : public Command +class CommandInvite : public Command { public: /** Constructor for invite. */ - cmd_invite (InspIRCd* Instance) : Command(Instance,"INVITE", 0, 0, false, 4) { syntax = "[ ]"; } + CommandInvite (InspIRCd* Instance) : Command(Instance,"INVITE", 0, 0, false, 4) { syntax = "[ ]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_ison.h b/include/commands/cmd_ison.h index e0ac4cc93..24ab33952 100644 --- a/include/commands/cmd_ison.h +++ b/include/commands/cmd_ison.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_ison : public Command +class CommandIson : public Command { public: /** Constructor for ison. */ - cmd_ison (InspIRCd* Instance) : Command(Instance,"ISON",0,0) { syntax = " {nick}"; } + CommandIson (InspIRCd* Instance) : Command(Instance,"ISON",0,0) { syntax = " {nick}"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_join.h b/include/commands/cmd_join.h index e1e720341..ecbe2bb2b 100644 --- a/include/commands/cmd_join.h +++ b/include/commands/cmd_join.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_join : public Command +class CommandJoin : public Command { public: /** Constructor for join. */ - cmd_join (InspIRCd* Instance) : Command(Instance,"JOIN", 0, 1, false, 2) { syntax = "{,} {{,}}"; } + CommandJoin (InspIRCd* Instance) : Command(Instance,"JOIN", 0, 1, false, 2) { syntax = "{,} {{,}}"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_kick.h b/include/commands/cmd_kick.h index 769ab316e..600c79396 100644 --- a/include/commands/cmd_kick.h +++ b/include/commands/cmd_kick.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_kick : public Command +class CommandKick : public Command { public: /** Constructor for kick. */ - cmd_kick (InspIRCd* Instance) : Command(Instance,"KICK",0,2) { syntax = " {,} []"; } + CommandKick (InspIRCd* Instance) : Command(Instance,"KICK",0,2) { syntax = " {,} []"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_kill.h b/include/commands/cmd_kill.h index 1dd048e5c..655c44257 100644 --- a/include/commands/cmd_kill.h +++ b/include/commands/cmd_kill.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_kill : public Command +class CommandKill : public Command { public: /** Constructor for kill. */ - cmd_kill (InspIRCd* Instance) : Command(Instance,"KILL",'o',2,false,0) { syntax = " "; } + CommandKill (InspIRCd* Instance) : Command(Instance,"KILL",'o',2,false,0) { syntax = " "; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_kline.h b/include/commands/cmd_kline.h index f20399ab2..7648006e9 100644 --- a/include/commands/cmd_kline.h +++ b/include/commands/cmd_kline.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_kline : public Command +class CommandKline : public Command { public: /** Constructor for kline. */ - cmd_kline (InspIRCd* Instance) : Command(Instance,"KLINE",'o',1,false,0) { syntax = " [ :]"; } + CommandKline (InspIRCd* Instance) : Command(Instance,"KLINE",'o',1,false,0) { syntax = " [ :]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_links.h b/include/commands/cmd_links.h index 6c5d521f1..8cbdf41e2 100644 --- a/include/commands/cmd_links.h +++ b/include/commands/cmd_links.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_links : public Command +class CommandLinks : public Command { public: /** Constructor for links. */ - cmd_links (InspIRCd* Instance) : Command(Instance,"LINKS",0,0) { } + CommandLinks (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 diff --git a/include/commands/cmd_list.h b/include/commands/cmd_list.h index c4033361a..5db212ee2 100644 --- a/include/commands/cmd_list.h +++ b/include/commands/cmd_list.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_list : public Command +class CommandList : public Command { public: /** Constructor for list. */ - cmd_list (InspIRCd* Instance) : Command(Instance,"LIST", 0, 0, false, 5) { } + CommandList (InspIRCd* Instance) : Command(Instance,"LIST", 0, 0, false, 5) { } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_loadmodule.h b/include/commands/cmd_loadmodule.h index 4e640b938..d9fc14670 100644 --- a/include/commands/cmd_loadmodule.h +++ b/include/commands/cmd_loadmodule.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_loadmodule : public Command +class CommandLoadmodule : public Command { public: /** Constructor for loadmodule. */ - cmd_loadmodule (InspIRCd* Instance) : Command(Instance,"LOADMODULE",'o',1) { syntax = ""; } + CommandLoadmodule (InspIRCd* Instance) : Command(Instance,"LOADMODULE",'o',1) { syntax = ""; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_lusers.h b/include/commands/cmd_lusers.h index d4bebca18..b031db79a 100644 --- a/include/commands/cmd_lusers.h +++ b/include/commands/cmd_lusers.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_lusers : public Command +class CommandLusers : public Command { public: /** Constructor for lusers. */ - cmd_lusers (InspIRCd* Instance) : Command(Instance,"LUSERS",0,0) { } + CommandLusers (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 diff --git a/include/commands/cmd_map.h b/include/commands/cmd_map.h index b80e0e8f8..159d9b8cd 100644 --- a/include/commands/cmd_map.h +++ b/include/commands/cmd_map.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_map : public Command +class CommandMap : public Command { public: /** Constructor for map. */ - cmd_map (InspIRCd* Instance) : Command(Instance,"MAP",0,0,false,2) { } + CommandMap (InspIRCd* Instance) : Command(Instance,"MAP",0,0,false,2) { } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_mode.h b/include/commands/cmd_mode.h index ddaeb69fb..f2d8c8954 100644 --- a/include/commands/cmd_mode.h +++ b/include/commands/cmd_mode.h @@ -23,12 +23,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_mode : public Command +class CommandMode : public Command { public: /** Constructor for mode. */ - cmd_mode (InspIRCd* Instance) : Command(Instance,"MODE",0,1) { syntax = " {}"; } + CommandMode (InspIRCd* Instance) : Command(Instance,"MODE",0,1) { syntax = " {}"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_modules.h b/include/commands/cmd_modules.h index 5dd3fab2b..ee6560f46 100644 --- a/include/commands/cmd_modules.h +++ b/include/commands/cmd_modules.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_modules : public Command +class CommandModules : public Command { public: /** Constructor for modules. */ - cmd_modules (InspIRCd* Instance) : Command(Instance,"MODULES",0,0) { syntax = "[debug]"; } + CommandModules (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 diff --git a/include/commands/cmd_motd.h b/include/commands/cmd_motd.h index c79d22efb..df546ffb1 100644 --- a/include/commands/cmd_motd.h +++ b/include/commands/cmd_motd.h @@ -27,12 +27,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_motd : public Command +class CommandMotd : public Command { public: /** Constructor for motd. */ - cmd_motd (InspIRCd* Instance) : Command(Instance,"MOTD",0,0) { syntax = "[]"; } + CommandMotd (InspIRCd* Instance) : Command(Instance,"MOTD",0,0) { syntax = "[]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_names.h b/include/commands/cmd_names.h index 82c25f569..1e0c7f634 100644 --- a/include/commands/cmd_names.h +++ b/include/commands/cmd_names.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_names : public Command +class CommandNames : public Command { public: /** Constructor for names. */ - cmd_names (InspIRCd* Instance) : Command(Instance,"NAMES",0,0) { syntax = "{{,}}"; } + CommandNames (InspIRCd* Instance) : Command(Instance,"NAMES",0,0) { syntax = "{{,}}"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_nick.h b/include/commands/cmd_nick.h index eb5397c5f..41da049e4 100644 --- a/include/commands/cmd_nick.h +++ b/include/commands/cmd_nick.h @@ -24,13 +24,13 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_nick : public Command +class CommandNick : public Command { bool allowinvalid; public: /** Constructor for nick. */ - cmd_nick (InspIRCd* Instance) : Command(Instance,"NICK", 0, 1, true, 3), allowinvalid(false) { syntax = ""; } + CommandNick (InspIRCd* Instance) : Command(Instance,"NICK", 0, 1, true, 3), allowinvalid(false) { syntax = ""; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_notice.h b/include/commands/cmd_notice.h index 377aa4aba..3ca2fdbdb 100644 --- a/include/commands/cmd_notice.h +++ b/include/commands/cmd_notice.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_notice : public Command +class CommandNotice : public Command { public: /** Constructor for notice. */ - cmd_notice (InspIRCd* Instance) : Command(Instance,"NOTICE",0,2) { syntax = "{,} "; } + CommandNotice (InspIRCd* Instance) : Command(Instance,"NOTICE",0,2) { syntax = "{,} "; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_oper.h b/include/commands/cmd_oper.h index e6cf7c844..1d3c7f865 100644 --- a/include/commands/cmd_oper.h +++ b/include/commands/cmd_oper.h @@ -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 +class CommandOper : public Command { public: /** Constructor for oper. */ - cmd_oper (InspIRCd* Instance) : Command(Instance,"OPER",0,2,false,2) { syntax = " "; } + CommandOper (InspIRCd* Instance) : Command(Instance,"OPER",0,2,false,2) { syntax = " "; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_part.h b/include/commands/cmd_part.h index 626e4da1e..2107d4d6a 100644 --- a/include/commands/cmd_part.h +++ b/include/commands/cmd_part.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_part : public Command +class CommandPart : public Command { public: /** Constructor for part. */ - cmd_part (InspIRCd* Instance) : Command(Instance,"PART", 0, 1, false, 5) { syntax = "{,} []"; } + CommandPart (InspIRCd* Instance) : Command(Instance,"PART", 0, 1, false, 5) { syntax = "{,} []"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_pass.h b/include/commands/cmd_pass.h index ca667a36b..3499d0245 100644 --- a/include/commands/cmd_pass.h +++ b/include/commands/cmd_pass.h @@ -27,12 +27,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_pass : public Command +class CommandPass : public Command { public: /** Constructor for pass. */ - cmd_pass (InspIRCd* Instance) : Command(Instance,"PASS",0,1,true,0) { syntax = ""; } + CommandPass (InspIRCd* Instance) : Command(Instance,"PASS",0,1,true,0) { syntax = ""; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_ping.h b/include/commands/cmd_ping.h index 425004930..df8e1d91d 100644 --- a/include/commands/cmd_ping.h +++ b/include/commands/cmd_ping.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_ping : public Command +class CommandPing : public Command { public: /** Constructor for ping. */ - cmd_ping (InspIRCd* Instance) : Command(Instance,"PING", 0, 1, false, 0) { syntax = " [:]"; } + CommandPing (InspIRCd* Instance) : Command(Instance,"PING", 0, 1, false, 0) { syntax = " [:]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_pong.h b/include/commands/cmd_pong.h index 37cbb13ac..2da0b78cc 100644 --- a/include/commands/cmd_pong.h +++ b/include/commands/cmd_pong.h @@ -25,12 +25,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_pong : public Command +class CommandPong : public Command { public: /** Constructor for pong. */ - cmd_pong (InspIRCd* Instance) : Command(Instance,"PONG", 0, 1, false, 0) { syntax = ""; } + CommandPong (InspIRCd* Instance) : Command(Instance,"PONG", 0, 1, false, 0) { syntax = ""; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_privmsg.h b/include/commands/cmd_privmsg.h index 12f1c0756..45af4f30d 100644 --- a/include/commands/cmd_privmsg.h +++ b/include/commands/cmd_privmsg.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_privmsg : public Command +class CommandPrivmsg : public Command { public: /** Constructor for privmsg. */ - cmd_privmsg (InspIRCd* Instance) : Command(Instance,"PRIVMSG",0,2) { syntax = "{,} "; } + CommandPrivmsg (InspIRCd* Instance) : Command(Instance,"PRIVMSG",0,2) { syntax = "{,} "; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_qline.h b/include/commands/cmd_qline.h index 5c6b4f8fa..e7555a5a7 100644 --- a/include/commands/cmd_qline.h +++ b/include/commands/cmd_qline.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_qline : public Command +class CommandQline : public Command { public: /** Constructor for qline. */ - cmd_qline (InspIRCd* Instance) : Command(Instance,"QLINE",'o',1,false,0) { syntax = " [ :]"; } + CommandQline (InspIRCd* Instance) : Command(Instance,"QLINE",'o',1,false,0) { syntax = " [ :]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_quit.h b/include/commands/cmd_quit.h index 23da5481c..c9ae8e37f 100644 --- a/include/commands/cmd_quit.h +++ b/include/commands/cmd_quit.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_quit : public Command +class CommandQuit : public Command { public: /** Constructor for quit. */ - cmd_quit (InspIRCd* Instance) : Command(Instance,"QUIT",0,0,true) { syntax = "[]"; } + CommandQuit (InspIRCd* Instance) : Command(Instance,"QUIT",0,0,true) { syntax = "[]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_rehash.h b/include/commands/cmd_rehash.h index 003b8c32a..03389e1eb 100644 --- a/include/commands/cmd_rehash.h +++ b/include/commands/cmd_rehash.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_rehash : public Command +class CommandRehash : public Command { public: /** Constructor for rehash. */ - cmd_rehash (InspIRCd* Instance) : Command(Instance,"REHASH",'o',0,false,3) { syntax = "[]"; } + CommandRehash (InspIRCd* Instance) : Command(Instance,"REHASH",'o',0,false,3) { syntax = "[]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_reloadmodule.h b/include/commands/cmd_reloadmodule.h index cdf053062..2aaf82091 100644 --- a/include/commands/cmd_reloadmodule.h +++ b/include/commands/cmd_reloadmodule.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_reloadmodule : public Command +class CommandReloadmodule : public Command { public: /** Constructor for reloadmodule. */ - cmd_reloadmodule (InspIRCd* Instance) : Command(Instance,"RELOADMODULE",'o',1) { syntax = ""; } + CommandReloadmodule (InspIRCd* Instance) : Command(Instance,"RELOADMODULE",'o',1) { syntax = ""; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_restart.h b/include/commands/cmd_restart.h index 2a5c7eda4..8995c14bb 100644 --- a/include/commands/cmd_restart.h +++ b/include/commands/cmd_restart.h @@ -27,12 +27,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_restart : public Command +class CommandRestart : public Command { public: /** Constructor for restart. */ - cmd_restart (InspIRCd* Instance) : Command(Instance,"RESTART",'o',1,false,0) { syntax = ""; } + CommandRestart (InspIRCd* Instance) : Command(Instance,"RESTART",'o',1,false,0) { syntax = ""; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_rules.h b/include/commands/cmd_rules.h index adfab7e17..1158caf4b 100644 --- a/include/commands/cmd_rules.h +++ b/include/commands/cmd_rules.h @@ -27,12 +27,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_rules : public Command +class CommandRules : public Command { public: /** Constructor for rules. */ - cmd_rules (InspIRCd* Instance) : Command(Instance,"RULES",0,0) { syntax = "[]"; } + CommandRules (InspIRCd* Instance) : Command(Instance,"RULES",0,0) { syntax = "[]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_server.h b/include/commands/cmd_server.h index 2b25e406d..a82dea77d 100644 --- a/include/commands/cmd_server.h +++ b/include/commands/cmd_server.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_server : public Command +class CommandServer : public Command { public: /** Constructor for server. */ - cmd_server (InspIRCd* Instance) : Command(Instance,"SERVER",0,0) { } + CommandServer (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 diff --git a/include/commands/cmd_squit.h b/include/commands/cmd_squit.h index f1270ef4c..95183328d 100644 --- a/include/commands/cmd_squit.h +++ b/include/commands/cmd_squit.h @@ -27,12 +27,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_squit : public Command +class CommandSquit : public Command { public: /** Constructor for squit. */ - cmd_squit (InspIRCd* Instance) : Command(Instance,"SQUIT",'o',1) { syntax = " []"; } + CommandSquit (InspIRCd* Instance) : Command(Instance,"SQUIT",'o',1) { syntax = " []"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_stats.h b/include/commands/cmd_stats.h index 69e151135..7306793bd 100644 --- a/include/commands/cmd_stats.h +++ b/include/commands/cmd_stats.h @@ -27,12 +27,12 @@ DllExport void DoStats(InspIRCd* Instance, char statschar, User* user, string_li * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_stats : public Command +class CommandStats : public Command { public: /** Constructor for stats. */ - cmd_stats (InspIRCd* Instance) : Command(Instance,"STATS",0,1) { syntax = " []"; } + CommandStats (InspIRCd* Instance) : Command(Instance,"STATS",0,1) { syntax = " []"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_time.h b/include/commands/cmd_time.h index b6d353c89..a26235a65 100644 --- a/include/commands/cmd_time.h +++ b/include/commands/cmd_time.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_time : public Command +class CommandTime : public Command { public: /** Constructor for time. */ - cmd_time (InspIRCd* Instance) : Command(Instance,"TIME",0,0) { syntax = "[]"; } + CommandTime (InspIRCd* Instance) : Command(Instance,"TIME",0,0) { syntax = "[]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_topic.h b/include/commands/cmd_topic.h index 7c265e85f..bba1d42f4 100644 --- a/include/commands/cmd_topic.h +++ b/include/commands/cmd_topic.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_topic : public Command +class CommandTopic : public Command { public: /** Constructor for topic. */ - cmd_topic (InspIRCd* Instance) : Command(Instance,"TOPIC",0,1,false,2) { syntax = " []"; } + CommandTopic (InspIRCd* Instance) : Command(Instance,"TOPIC",0,1,false,2) { syntax = " []"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_trace.h b/include/commands/cmd_trace.h index 1f551f1eb..656178ada 100644 --- a/include/commands/cmd_trace.h +++ b/include/commands/cmd_trace.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_trace : public Command +class CommandTrace : public Command { public: /** Constructor for trace. */ - cmd_trace (InspIRCd* Instance) : Command(Instance,"TRACE",'o',0) { syntax = "[]"; } + CommandTrace (InspIRCd* Instance) : Command(Instance,"TRACE",'o',0) { syntax = "[]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_unloadmodule.h b/include/commands/cmd_unloadmodule.h index 2afd84168..9b5bfbf84 100644 --- a/include/commands/cmd_unloadmodule.h +++ b/include/commands/cmd_unloadmodule.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_unloadmodule : public Command +class CommandUnloadmodule : public Command { public: /** Constructor for unloadmodule. */ - cmd_unloadmodule (InspIRCd* Instance) : Command(Instance,"UNLOADMODULE",'o',1) { syntax = ""; } + CommandUnloadmodule (InspIRCd* Instance) : Command(Instance,"UNLOADMODULE",'o',1) { syntax = ""; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_user.h b/include/commands/cmd_user.h index ce9b497a4..c7a60d1fa 100644 --- a/include/commands/cmd_user.h +++ b/include/commands/cmd_user.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_user : public Command +class CommandUser : public Command { public: /** Constructor for user. */ - cmd_user (InspIRCd* Instance) : Command(Instance,"USER",0,4,true,0) { syntax = " "; } + CommandUser (InspIRCd* Instance) : Command(Instance,"USER",0,4,true,0) { syntax = " "; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_userhost.h b/include/commands/cmd_userhost.h index 65b358e47..09bd62d23 100644 --- a/include/commands/cmd_userhost.h +++ b/include/commands/cmd_userhost.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_userhost : public Command +class CommandUserhost : public Command { public: /** Constructor for userhost. */ - cmd_userhost (InspIRCd* Instance) : Command(Instance,"USERHOST",0,1) { syntax = "{,}"; } + CommandUserhost (InspIRCd* Instance) : Command(Instance,"USERHOST",0,1) { syntax = "{,}"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_version.h b/include/commands/cmd_version.h index a70e033df..f26dac5b8 100644 --- a/include/commands/cmd_version.h +++ b/include/commands/cmd_version.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_version : public Command +class CommandVersion : public Command { public: /** Constructor for version. */ - cmd_version (InspIRCd* Instance) : Command(Instance,"VERSION",0,0) { syntax = "[]"; } + CommandVersion (InspIRCd* Instance) : Command(Instance,"VERSION",0,0) { syntax = "[]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_wallops.h b/include/commands/cmd_wallops.h index c4ab9973f..fde696247 100644 --- a/include/commands/cmd_wallops.h +++ b/include/commands/cmd_wallops.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_wallops : public Command +class CommandWallops : public Command { public: /** Constructor for wallops. */ - cmd_wallops (InspIRCd* Instance) : Command(Instance,"WALLOPS",'o',1) { syntax = ""; } + CommandWallops (InspIRCd* Instance) : Command(Instance,"WALLOPS",'o',1) { syntax = ""; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_who.h b/include/commands/cmd_who.h index e0f6f61c6..215972f94 100644 --- a/include/commands/cmd_who.h +++ b/include/commands/cmd_who.h @@ -24,7 +24,7 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_who : public Command +class CommandWho : public Command { bool CanView(Channel* chan, User* user); bool opt_viewopersonly; @@ -41,7 +41,7 @@ class cmd_who : public Command public: /** Constructor for who. */ - cmd_who (InspIRCd* Instance) : Command(Instance,"WHO", 0, 1, false, 2) { syntax = "|||||0 [ohurmMiaplf]"; } + CommandWho (InspIRCd* Instance) : Command(Instance,"WHO", 0, 1, false, 2) { syntax = "|||||0 [ohurmMiaplf]"; } void SendWhoLine(User* user, const std::string &initial, Channel* ch, User* u, std::vector &whoresults); /** Handle command. * @param parameters The parameters to the comamnd diff --git a/include/commands/cmd_whois.h b/include/commands/cmd_whois.h index bf105c020..c7dd9a947 100644 --- a/include/commands/cmd_whois.h +++ b/include/commands/cmd_whois.h @@ -27,12 +27,12 @@ DllExport void do_whois(InspIRCd* Instance, User* user, User* dest,unsigned long * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_whois : public Command +class CommandWhois : public Command { public: /** Constructor for whois. */ - cmd_whois (InspIRCd* Instance) : Command(Instance,"WHOIS",0,1,false,2) { syntax = "{,}"; } + CommandWhois (InspIRCd* Instance) : Command(Instance,"WHOIS",0,1,false,2) { syntax = "{,}"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_whowas.h b/include/commands/cmd_whowas.h index 4df20e579..a53677e85 100644 --- a/include/commands/cmd_whowas.h +++ b/include/commands/cmd_whowas.h @@ -56,7 +56,7 @@ typedef std::deque > whowas_users_fifo; * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_whowas : public Command +class CommandWhowas : public Command { private: /** Whowas container, contains a map of vectors of users tracked by WHOWAS @@ -72,7 +72,7 @@ class cmd_whowas : public Command std::string stats; public: - cmd_whowas(InspIRCd* Instance); + CommandWhowas(InspIRCd* Instance); /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command @@ -92,7 +92,7 @@ class cmd_whowas : public Command void GetStats(Extensible* ext); void PruneWhoWas(time_t t); void MaintainWhoWas(time_t t); - virtual ~cmd_whowas(); + virtual ~CommandWhowas(); }; /** Used to hold WHOWAS information diff --git a/include/commands/cmd_zline.h b/include/commands/cmd_zline.h index b606ea132..482d79478 100644 --- a/include/commands/cmd_zline.h +++ b/include/commands/cmd_zline.h @@ -24,12 +24,12 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_zline : public Command +class CommandZline : public Command { public: /** Constructor for zline. */ - cmd_zline (InspIRCd* Instance) : Command(Instance,"ZLINE",'o',1,false,0) { syntax = " [ :]"; } + CommandZline (InspIRCd* Instance) : Command(Instance,"ZLINE",'o',1,false,0) { syntax = " [ :]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/src/cmd_admin.cpp b/src/cmd_admin.cpp index 427342cfb..0d704ba24 100644 --- a/src/cmd_admin.cpp +++ b/src/cmd_admin.cpp @@ -17,12 +17,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_admin(Instance); + return new CommandAdmin(Instance); } /** Handle /ADMIN */ -CmdResult cmd_admin::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandAdmin::Handle (const char** parameters, int pcnt, User *user) { user->WriteServ("256 %s :Administrative info for %s",user->nick,ServerInstance->Config->ServerName); if (*ServerInstance->Config->AdminName) diff --git a/src/cmd_away.cpp b/src/cmd_away.cpp index c237a94fd..ce4628858 100644 --- a/src/cmd_away.cpp +++ b/src/cmd_away.cpp @@ -16,12 +16,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_away(Instance); + return new CommandAway(Instance); } /** Handle /AWAY */ -CmdResult cmd_away::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandAway::Handle (const char** parameters, int pcnt, User *user) { if ((pcnt) && (*parameters[0])) { diff --git a/src/cmd_clearcache.cpp b/src/cmd_clearcache.cpp index aed05c093..cbc796bba 100644 --- a/src/cmd_clearcache.cpp +++ b/src/cmd_clearcache.cpp @@ -16,12 +16,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_clearcache(Instance); + return new CommandClearcache(Instance); } /** Handle /CLEARCACHE */ -CmdResult cmd_clearcache::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandClearcache::Handle (const char** parameters, int pcnt, User *user) { int n = ServerInstance->Res->ClearCache(); user->WriteServ("NOTICE %s :*** Cleared DNS cache of %d items.", user->nick, n); diff --git a/src/cmd_commands.cpp b/src/cmd_commands.cpp index f9327d372..68c5a8c78 100644 --- a/src/cmd_commands.cpp +++ b/src/cmd_commands.cpp @@ -18,10 +18,10 @@ */ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_commands(Instance); + return new CommandCommands(Instance); } -CmdResult cmd_commands::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandCommands::Handle (const char** parameters, int pcnt, User *user) { for (Commandable::iterator i = ServerInstance->Parser->cmdlist.begin(); i != ServerInstance->Parser->cmdlist.end(); i++) { diff --git a/src/cmd_connect.cpp b/src/cmd_connect.cpp index eff8a23f0..b44264123 100644 --- a/src/cmd_connect.cpp +++ b/src/cmd_connect.cpp @@ -20,12 +20,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_connect(Instance); + return new CommandConnect(Instance); } /** Handle /CONNECT */ -CmdResult cmd_connect::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandConnect::Handle (const char** parameters, int pcnt, User *user) { user->WriteServ( "NOTICE %s :Look into loading a linking module (like m_spanningtree) if you want this to do anything useful.", user->nick); return CMD_SUCCESS; diff --git a/src/cmd_die.cpp b/src/cmd_die.cpp index 3193a19e1..4ef9e4301 100644 --- a/src/cmd_die.cpp +++ b/src/cmd_die.cpp @@ -17,12 +17,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_die(Instance); + return new CommandDie(Instance); } /** Handle /DIE */ -CmdResult cmd_die::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandDie::Handle (const char** parameters, int pcnt, User *user) { if (!strcmp(parameters[0],ServerInstance->Config->diepass)) { diff --git a/src/cmd_eline.cpp b/src/cmd_eline.cpp index 6a4db99dd..bd9832c8a 100644 --- a/src/cmd_eline.cpp +++ b/src/cmd_eline.cpp @@ -17,12 +17,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_eline(Instance); + return new CommandEline(Instance); } /** Handle /ELINE */ -CmdResult cmd_eline::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandEline::Handle (const char** parameters, int pcnt, User *user) { if (pcnt >= 3) { diff --git a/src/cmd_gline.cpp b/src/cmd_gline.cpp index 1cd4bcb48..3845c23ee 100644 --- a/src/cmd_gline.cpp +++ b/src/cmd_gline.cpp @@ -17,12 +17,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_gline(Instance); + return new CommandGline(Instance); } /** Handle /GLINE */ -CmdResult cmd_gline::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandGline::Handle (const char** parameters, int pcnt, User *user) { if (pcnt >= 3) { diff --git a/src/cmd_info.cpp b/src/cmd_info.cpp index 447834a7f..959f04a39 100644 --- a/src/cmd_info.cpp +++ b/src/cmd_info.cpp @@ -16,12 +16,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_info(Instance); + return new CommandInfo(Instance); } /** Handle /INFO */ -CmdResult cmd_info::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandInfo::Handle (const char** parameters, int pcnt, User *user) { user->WriteServ( "371 %s : -/\\- \2InspIRCd\2 -\\/-", user->nick); user->WriteServ( "371 %s : November 2002 - Present", user->nick); diff --git a/src/cmd_invite.cpp b/src/cmd_invite.cpp index 49382deb8..d5ce160ac 100644 --- a/src/cmd_invite.cpp +++ b/src/cmd_invite.cpp @@ -16,12 +16,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_invite(Instance); + return new CommandInvite(Instance); } /** Handle /INVITE */ -CmdResult cmd_invite::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandInvite::Handle (const char** parameters, int pcnt, User *user) { int MOD_RESULT = 0; diff --git a/src/cmd_ison.cpp b/src/cmd_ison.cpp index 94221f152..9289dd014 100644 --- a/src/cmd_ison.cpp +++ b/src/cmd_ison.cpp @@ -16,12 +16,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_ison(Instance); + return new CommandIson(Instance); } /** Handle /ISON */ -CmdResult cmd_ison::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandIson::Handle (const char** parameters, int pcnt, User *user) { std::map ison_already; User *u; diff --git a/src/cmd_join.cpp b/src/cmd_join.cpp index 0c5c3f157..b5359397d 100644 --- a/src/cmd_join.cpp +++ b/src/cmd_join.cpp @@ -16,12 +16,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_join(Instance); + return new CommandJoin(Instance); } /** Handle /JOIN */ -CmdResult cmd_join::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandJoin::Handle (const char** parameters, int pcnt, User *user) { if (pcnt > 1) { diff --git a/src/cmd_kick.cpp b/src/cmd_kick.cpp index c4eeaf609..c8b505ff0 100644 --- a/src/cmd_kick.cpp +++ b/src/cmd_kick.cpp @@ -16,12 +16,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_kick(Instance); + return new CommandKick(Instance); } /** Handle /KICK */ -CmdResult cmd_kick::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandKick::Handle (const char** parameters, int pcnt, User *user) { char reason[MAXKICK]; Channel* c = ServerInstance->FindChan(parameters[0]); diff --git a/src/cmd_kill.cpp b/src/cmd_kill.cpp index e137e1ab2..29ce56b5c 100644 --- a/src/cmd_kill.cpp +++ b/src/cmd_kill.cpp @@ -16,12 +16,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_kill(Instance); + return new CommandKill(Instance); } /** Handle /KILL */ -CmdResult cmd_kill::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandKill::Handle (const char** parameters, int pcnt, User *user) { /* Allow comma seperated lists of users for /KILL (thanks w00t) */ if (ServerInstance->Parser->LoopCall(user, this, parameters, pcnt, 0)) diff --git a/src/cmd_kline.cpp b/src/cmd_kline.cpp index 5dbdf2b2e..5edb414ea 100644 --- a/src/cmd_kline.cpp +++ b/src/cmd_kline.cpp @@ -17,12 +17,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_kline(Instance); + return new CommandKline(Instance); } /** Handle /KLINE */ -CmdResult cmd_kline::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandKline::Handle (const char** parameters, int pcnt, User *user) { if (pcnt >= 3) { diff --git a/src/cmd_links.cpp b/src/cmd_links.cpp index 0bf8a19de..4c50b2684 100644 --- a/src/cmd_links.cpp +++ b/src/cmd_links.cpp @@ -16,12 +16,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_links(Instance); + return new CommandLinks(Instance); } /** Handle /LINKS */ -CmdResult cmd_links::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandLinks::Handle (const char** parameters, int pcnt, User *user) { user->WriteServ("364 %s %s %s :0 %s",user->nick,ServerInstance->Config->ServerName,ServerInstance->Config->ServerName,ServerInstance->Config->ServerDesc); user->WriteServ("365 %s * :End of /LINKS list.",user->nick); diff --git a/src/cmd_list.cpp b/src/cmd_list.cpp index ff4715bec..0e97d0db1 100644 --- a/src/cmd_list.cpp +++ b/src/cmd_list.cpp @@ -19,10 +19,10 @@ */ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_list(Instance); + return new CommandList(Instance); } -CmdResult cmd_list::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandList::Handle (const char** parameters, int pcnt, User *user) { int minusers = 0, maxusers = 0; diff --git a/src/cmd_loadmodule.cpp b/src/cmd_loadmodule.cpp index a16a58789..c6f0a611c 100644 --- a/src/cmd_loadmodule.cpp +++ b/src/cmd_loadmodule.cpp @@ -16,12 +16,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_loadmodule(Instance); + return new CommandLoadmodule(Instance); } /** Handle /LOADMODULE */ -CmdResult cmd_loadmodule::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandLoadmodule::Handle (const char** parameters, int pcnt, User *user) { if (ServerInstance->Modules->Load(parameters[0])) { diff --git a/src/cmd_lusers.cpp b/src/cmd_lusers.cpp index 1ea6f2f42..04f2906ac 100644 --- a/src/cmd_lusers.cpp +++ b/src/cmd_lusers.cpp @@ -16,12 +16,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_lusers(Instance); + return new CommandLusers(Instance); } /** Handle /LUSERS */ -CmdResult cmd_lusers::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandLusers::Handle (const char** parameters, int pcnt, User *user) { // this lusers command shows one server at all times because // a protocol module must override it to show those stats. diff --git a/src/cmd_map.cpp b/src/cmd_map.cpp index 05bd0cbef..7d391d275 100644 --- a/src/cmd_map.cpp +++ b/src/cmd_map.cpp @@ -16,12 +16,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_map(Instance); + return new CommandMap(Instance); } /** Handle /MAP */ -CmdResult cmd_map::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandMap::Handle (const char** parameters, int pcnt, User *user) { // as with /LUSERS this does nothing without a linking // module to override its behaviour and display something diff --git a/src/cmd_mode.cpp b/src/cmd_mode.cpp index e5240b00d..e0d3b4242 100644 --- a/src/cmd_mode.cpp +++ b/src/cmd_mode.cpp @@ -16,12 +16,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_mode(Instance); + return new CommandMode(Instance); } /** Handle /MODE */ -CmdResult cmd_mode::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandMode::Handle (const char** parameters, int pcnt, User *user) { ServerInstance->Modes->Process(parameters, pcnt, user, false); return CMD_SUCCESS; diff --git a/src/cmd_modules.cpp b/src/cmd_modules.cpp index fd86254e5..1ff8c1c75 100644 --- a/src/cmd_modules.cpp +++ b/src/cmd_modules.cpp @@ -33,12 +33,12 @@ char* itab[] = { extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_modules(Instance); + return new CommandModules(Instance); } /** Handle /MODULES */ -CmdResult cmd_modules::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandModules::Handle (const char** parameters, int pcnt, User *user) { for (unsigned int i = 0; i < ServerInstance->Config->module_names.size(); i++) { diff --git a/src/cmd_motd.cpp b/src/cmd_motd.cpp index 019b13228..8098b2007 100644 --- a/src/cmd_motd.cpp +++ b/src/cmd_motd.cpp @@ -16,12 +16,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_motd(Instance); + return new CommandMotd(Instance); } /** Handle /MOTD */ -CmdResult cmd_motd::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandMotd::Handle (const char** parameters, int pcnt, User *user) { user->ShowMOTD(); return CMD_SUCCESS; diff --git a/src/cmd_names.cpp b/src/cmd_names.cpp index 29d448f28..4049364a7 100644 --- a/src/cmd_names.cpp +++ b/src/cmd_names.cpp @@ -16,12 +16,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_names(Instance); + return new CommandNames(Instance); } /** Handle /NAMES */ -CmdResult cmd_names::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandNames::Handle (const char** parameters, int pcnt, User *user) { Channel* c; diff --git a/src/cmd_nick.cpp b/src/cmd_nick.cpp index 976c78a7d..52e562d02 100644 --- a/src/cmd_nick.cpp +++ b/src/cmd_nick.cpp @@ -17,7 +17,7 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_nick(Instance); + return new CommandNick(Instance); } /** Handle nick changes from users. @@ -25,7 +25,7 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) * for the client introduction code in here, youre in the wrong place. * You need to look in the spanningtree module for this! */ -CmdResult cmd_nick::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandNick::Handle (const char** parameters, int pcnt, User *user) { char oldnick[NICKMAX]; @@ -161,7 +161,7 @@ CmdResult cmd_nick::Handle (const char** parameters, int pcnt, User *user) } -CmdResult cmd_nick::HandleInternal(const unsigned int id, const std::deque ¶meters) +CmdResult CommandNick::HandleInternal(const unsigned int id, const std::deque ¶meters) { allowinvalid = (id != 0); return CMD_SUCCESS; diff --git a/src/cmd_notice.cpp b/src/cmd_notice.cpp index cf4d7b44a..9cc846dd8 100644 --- a/src/cmd_notice.cpp +++ b/src/cmd_notice.cpp @@ -17,10 +17,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_notice(Instance); + return new CommandNotice(Instance); } -CmdResult cmd_notice::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandNotice::Handle (const char** parameters, int pcnt, User *user) { User *dest; Channel *chan; diff --git a/src/cmd_oper.cpp b/src/cmd_oper.cpp index 8fa5d9382..bcb2991b7 100644 --- a/src/cmd_oper.cpp +++ b/src/cmd_oper.cpp @@ -32,10 +32,10 @@ bool OneOfMatches(const char* host, const char* ip, const char* hostlist) extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_oper(Instance); + return new CommandOper(Instance); } -CmdResult cmd_oper::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandOper::Handle (const char** parameters, int pcnt, User *user) { char LoginName[MAXBUF]; char Password[MAXBUF]; diff --git a/src/cmd_part.cpp b/src/cmd_part.cpp index 18e8d19d9..46108eca2 100644 --- a/src/cmd_part.cpp +++ b/src/cmd_part.cpp @@ -16,10 +16,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_part(Instance); + return new CommandPart(Instance); } -CmdResult cmd_part::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandPart::Handle (const char** parameters, int pcnt, User *user) { if (ServerInstance->Parser->LoopCall(user, this, parameters, pcnt, 0)) return CMD_SUCCESS; diff --git a/src/cmd_pass.cpp b/src/cmd_pass.cpp index db84eb051..801d9923b 100644 --- a/src/cmd_pass.cpp +++ b/src/cmd_pass.cpp @@ -16,10 +16,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_pass(Instance); + return new CommandPass(Instance); } -CmdResult cmd_pass::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandPass::Handle (const char** parameters, int pcnt, User *user) { // Check to make sure they havnt registered -- Fix by FCS if (user->registered == REG_ALL) diff --git a/src/cmd_ping.cpp b/src/cmd_ping.cpp index 735f9c3be..fb0b03829 100644 --- a/src/cmd_ping.cpp +++ b/src/cmd_ping.cpp @@ -16,10 +16,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_ping(Instance); + return new CommandPing(Instance); } -CmdResult cmd_ping::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandPing::Handle (const char** parameters, int pcnt, User *user) { user->WriteServ("PONG %s :%s",ServerInstance->Config->ServerName,parameters[0]); return CMD_SUCCESS; diff --git a/src/cmd_pong.cpp b/src/cmd_pong.cpp index aca317078..e1927deab 100644 --- a/src/cmd_pong.cpp +++ b/src/cmd_pong.cpp @@ -16,10 +16,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_pong(Instance); + return new CommandPong(Instance); } -CmdResult cmd_pong::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandPong::Handle (const char** parameters, int pcnt, User *user) { // set the user as alive so they survive to next ping user->lastping = 1; diff --git a/src/cmd_privmsg.cpp b/src/cmd_privmsg.cpp index fddf810d2..96aff8392 100644 --- a/src/cmd_privmsg.cpp +++ b/src/cmd_privmsg.cpp @@ -17,10 +17,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_privmsg(Instance); + return new CommandPrivmsg(Instance); } -CmdResult cmd_privmsg::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandPrivmsg::Handle (const char** parameters, int pcnt, User *user) { User *dest; Channel *chan; diff --git a/src/cmd_qline.cpp b/src/cmd_qline.cpp index 4f843cb5e..16927d234 100644 --- a/src/cmd_qline.cpp +++ b/src/cmd_qline.cpp @@ -19,10 +19,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_qline(Instance); + return new CommandQline(Instance); } -CmdResult cmd_qline::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandQline::Handle (const char** parameters, int pcnt, User *user) { if (pcnt >= 3) { diff --git a/src/cmd_quit.cpp b/src/cmd_quit.cpp index ae3d68296..c74f868ba 100644 --- a/src/cmd_quit.cpp +++ b/src/cmd_quit.cpp @@ -18,10 +18,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_quit(Instance); + return new CommandQuit(Instance); } -CmdResult cmd_quit::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandQuit::Handle (const char** parameters, int pcnt, User *user) { std::string quitmsg; diff --git a/src/cmd_rehash.cpp b/src/cmd_rehash.cpp index 5612f59fa..2246c2f46 100644 --- a/src/cmd_rehash.cpp +++ b/src/cmd_rehash.cpp @@ -18,10 +18,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_rehash(Instance); + return new CommandRehash(Instance); } -CmdResult cmd_rehash::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandRehash::Handle (const char** parameters, int pcnt, User *user) { user->WriteServ("382 %s %s :Rehashing",user->nick,ServerConfig::CleanFilename(ServerInstance->ConfigFileName)); std::string parameter; diff --git a/src/cmd_reloadmodule.cpp b/src/cmd_reloadmodule.cpp index a08dc7fec..5180807b2 100644 --- a/src/cmd_reloadmodule.cpp +++ b/src/cmd_reloadmodule.cpp @@ -16,10 +16,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_reloadmodule(Instance); + return new CommandReloadmodule(Instance); } -CmdResult cmd_reloadmodule::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandReloadmodule::Handle (const char** parameters, int pcnt, User *user) { if (ServerInstance->Modules->Unload(parameters[0])) { diff --git a/src/cmd_restart.cpp b/src/cmd_restart.cpp index 6880d5e28..3f1ff13b8 100644 --- a/src/cmd_restart.cpp +++ b/src/cmd_restart.cpp @@ -16,10 +16,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_restart(Instance); + return new CommandRestart(Instance); } -CmdResult cmd_restart::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandRestart::Handle (const char** parameters, int pcnt, User *user) { ServerInstance->Log(DEFAULT,"Restart: %s",user->nick); if (!strcmp(parameters[0],ServerInstance->Config->restartpass)) diff --git a/src/cmd_rules.cpp b/src/cmd_rules.cpp index 668a207b7..f9009c9df 100644 --- a/src/cmd_rules.cpp +++ b/src/cmd_rules.cpp @@ -16,10 +16,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_rules(Instance); + return new CommandRules(Instance); } -CmdResult cmd_rules::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandRules::Handle (const char** parameters, int pcnt, User *user) { user->ShowRULES(); return CMD_SUCCESS; diff --git a/src/cmd_server.cpp b/src/cmd_server.cpp index 7781d3331..9e80cc386 100644 --- a/src/cmd_server.cpp +++ b/src/cmd_server.cpp @@ -18,10 +18,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_server(Instance); + return new CommandServer(Instance); } -CmdResult cmd_server::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandServer::Handle (const char** parameters, int pcnt, User *user) { user->WriteServ("666 %s :You cannot identify as a server, you are a USER. IRC Operators informed.",user->nick); ServerInstance->WriteOpers("*** WARNING: %s attempted to issue a SERVER command and is registered as a user!",user->nick); diff --git a/src/cmd_squit.cpp b/src/cmd_squit.cpp index 3f8175093..8f1cbf43d 100644 --- a/src/cmd_squit.cpp +++ b/src/cmd_squit.cpp @@ -21,10 +21,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_squit(Instance); + return new CommandSquit(Instance); } -CmdResult cmd_squit::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandSquit::Handle (const char** parameters, int pcnt, User *user) { user->WriteServ( "NOTICE %s :Look into loading a linking module (like m_spanningtree) if you want this to do anything useful.", user->nick); return CMD_FAILURE; diff --git a/src/cmd_stats.cpp b/src/cmd_stats.cpp index 38cae03cf..52172df06 100644 --- a/src/cmd_stats.cpp +++ b/src/cmd_stats.cpp @@ -28,10 +28,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_stats(Instance); + return new CommandStats(Instance); } -CmdResult cmd_stats::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandStats::Handle (const char** parameters, int pcnt, User *user) { if (IS_LOCAL(user)) { diff --git a/src/cmd_time.cpp b/src/cmd_time.cpp index ddeb0b190..97f4eb5ae 100644 --- a/src/cmd_time.cpp +++ b/src/cmd_time.cpp @@ -18,10 +18,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_time(Instance); + return new CommandTime(Instance); } -CmdResult cmd_time::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandTime::Handle (const char** parameters, int pcnt, User *user) { struct tm* timeinfo; time_t local = ServerInstance->Time(); diff --git a/src/cmd_topic.cpp b/src/cmd_topic.cpp index b3034ba39..e12fd64f9 100644 --- a/src/cmd_topic.cpp +++ b/src/cmd_topic.cpp @@ -17,10 +17,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_topic(Instance); + return new CommandTopic(Instance); } -CmdResult cmd_topic::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandTopic::Handle (const char** parameters, int pcnt, User *user) { Channel* Ptr; diff --git a/src/cmd_trace.cpp b/src/cmd_trace.cpp index 5899c6832..d1e57ab00 100644 --- a/src/cmd_trace.cpp +++ b/src/cmd_trace.cpp @@ -16,12 +16,12 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_trace(Instance); + return new CommandTrace(Instance); } /** XXX: This is crap. someone fix this when you have time, to be more useful. */ -CmdResult cmd_trace::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandTrace::Handle (const char** parameters, int pcnt, User *user) { for (user_hash::iterator i = ServerInstance->clientlist->begin(); i != ServerInstance->clientlist->end(); i++) { diff --git a/src/cmd_unloadmodule.cpp b/src/cmd_unloadmodule.cpp index d0b35f69f..fc20d4895 100644 --- a/src/cmd_unloadmodule.cpp +++ b/src/cmd_unloadmodule.cpp @@ -18,10 +18,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_unloadmodule(Instance); + return new CommandUnloadmodule(Instance); } -CmdResult cmd_unloadmodule::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandUnloadmodule::Handle (const char** parameters, int pcnt, User *user) { if (ServerInstance->Modules->Unload(parameters[0])) { diff --git a/src/cmd_user.cpp b/src/cmd_user.cpp index 740674833..0f64600e9 100644 --- a/src/cmd_user.cpp +++ b/src/cmd_user.cpp @@ -16,10 +16,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_user(Instance); + return new CommandUser(Instance); } -CmdResult cmd_user::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandUser::Handle (const char** parameters, int pcnt, User *user) { /* A user may only send the USER command once */ if (!(user->registered & REG_USER)) diff --git a/src/cmd_userhost.cpp b/src/cmd_userhost.cpp index 78d435a39..94f406c31 100644 --- a/src/cmd_userhost.cpp +++ b/src/cmd_userhost.cpp @@ -16,10 +16,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_userhost(Instance); + return new CommandUserhost(Instance); } -CmdResult cmd_userhost::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandUserhost::Handle (const char** parameters, int pcnt, User *user) { std::string retbuf = std::string("302 ") + user->nick + " :"; diff --git a/src/cmd_version.cpp b/src/cmd_version.cpp index 86fde3210..19bb9e4af 100644 --- a/src/cmd_version.cpp +++ b/src/cmd_version.cpp @@ -18,10 +18,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_version(Instance); + return new CommandVersion(Instance); } -CmdResult cmd_version::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandVersion::Handle (const char** parameters, int pcnt, User *user) { user->WriteServ("351 %s :%s",user->nick,ServerInstance->GetVersionString().c_str()); ServerInstance->Config->Send005(user); diff --git a/src/cmd_wallops.cpp b/src/cmd_wallops.cpp index 14924e56b..f2a4ddfd9 100644 --- a/src/cmd_wallops.cpp +++ b/src/cmd_wallops.cpp @@ -18,10 +18,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_wallops(Instance); + return new CommandWallops(Instance); } -CmdResult cmd_wallops::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandWallops::Handle (const char** parameters, int pcnt, User *user) { user->WriteWallOps(std::string(parameters[0])); FOREACH_MOD(I_OnWallops,OnWallops(user,parameters[0])); diff --git a/src/cmd_who.cpp b/src/cmd_who.cpp index 0ebe20d10..70fe78da1 100644 --- a/src/cmd_who.cpp +++ b/src/cmd_who.cpp @@ -27,7 +27,7 @@ static char *get_first_visible_channel(User *u) return "*"; } -bool cmd_who::whomatch(User* user, const char* matchtext) +bool CommandWho::whomatch(User* user, const char* matchtext) { bool realhost = false; bool realname = false; @@ -109,10 +109,10 @@ bool cmd_who::whomatch(User* user, const char* matchtext) extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_who(Instance); + return new CommandWho(Instance); } -bool cmd_who::CanView(Channel* chan, User* user) +bool CommandWho::CanView(Channel* chan, User* user) { if (!user || !chan) return false; @@ -132,7 +132,7 @@ bool cmd_who::CanView(Channel* chan, User* user) return false; } -void cmd_who::SendWhoLine(User* user, const std::string &initial, Channel* ch, User* u, std::vector &whoresults) +void CommandWho::SendWhoLine(User* user, const std::string &initial, Channel* ch, User* u, std::vector &whoresults) { std::string lcn = get_first_visible_channel(u); Channel* chlast = ServerInstance->FindChan(lcn); @@ -165,7 +165,7 @@ void cmd_who::SendWhoLine(User* user, const std::string &initial, Channel* ch, U whoresults.push_back(wholine); } -CmdResult cmd_who::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandWho::Handle (const char** parameters, int pcnt, User *user) { /* * XXX - RFC says: diff --git a/src/cmd_whois.cpp b/src/cmd_whois.cpp index f861dde36..45249a0f6 100644 --- a/src/cmd_whois.cpp +++ b/src/cmd_whois.cpp @@ -88,10 +88,10 @@ void do_whois(InspIRCd* ServerInstance, User* user, User* dest,unsigned long sig extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_whois(Instance); + return new CommandWhois(Instance); } -CmdResult cmd_whois::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandWhois::Handle (const char** parameters, int pcnt, User *user) { User *dest; int userindex = 0; diff --git a/src/cmd_whowas.cpp b/src/cmd_whowas.cpp index 447beba89..005a23489 100644 --- a/src/cmd_whowas.cpp +++ b/src/cmd_whowas.cpp @@ -18,17 +18,17 @@ WhoWasMaintainTimer * timer; extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_whowas(Instance); + return new CommandWhowas(Instance); } -cmd_whowas::cmd_whowas(InspIRCd* Instance) : Command(Instance, "WHOWAS", 0, 1, false, 2) +CommandWhowas::CommandWhowas(InspIRCd* Instance) : Command(Instance, "WHOWAS", 0, 1, false, 2) { syntax = "{,}"; timer = new WhoWasMaintainTimer(Instance, 3600); Instance->Timers->AddTimer(timer); } -CmdResult cmd_whowas::Handle (const char** parameters, int pcnt, User* user) +CmdResult CommandWhowas::Handle (const char** parameters, int pcnt, User* user) { /* if whowas disabled in config */ if (ServerInstance->Config->WhoWasGroupSize == 0 || ServerInstance->Config->WhoWasMaxGroups == 0) @@ -86,7 +86,7 @@ CmdResult cmd_whowas::Handle (const char** parameters, int pcnt, User* user) return CMD_SUCCESS; } -CmdResult cmd_whowas::HandleInternal(const unsigned int id, const std::deque ¶meters) +CmdResult CommandWhowas::HandleInternal(const unsigned int id, const std::deque ¶meters) { switch (id) { @@ -112,7 +112,7 @@ CmdResult cmd_whowas::HandleInternal(const unsigned int id, const std::dequeExtend("stats", stats.c_str()); } -void cmd_whowas::AddToWhoWas(User* user) +void CommandWhowas::AddToWhoWas(User* user) { /* if whowas disabled */ if (ServerInstance->Config->WhoWasGroupSize == 0 || ServerInstance->Config->WhoWasMaxGroups == 0) @@ -187,7 +187,7 @@ void cmd_whowas::AddToWhoWas(User* user) } /* on rehash, refactor maps according to new conf values */ -void cmd_whowas::PruneWhoWas(time_t t) +void CommandWhowas::PruneWhoWas(time_t t) { /* config values */ int groupsize = ServerInstance->Config->WhoWasGroupSize; @@ -259,7 +259,7 @@ void cmd_whowas::PruneWhoWas(time_t t) } /* call maintain once an hour to remove expired nicks */ -void cmd_whowas::MaintainWhoWas(time_t t) +void CommandWhowas::MaintainWhoWas(time_t t) { for (whowas_users::iterator iter = whowas.begin(); iter != whowas.end(); iter++) { @@ -276,7 +276,7 @@ void cmd_whowas::MaintainWhoWas(time_t t) } } -cmd_whowas::~cmd_whowas() +CommandWhowas::~CommandWhowas() { if (timer) { diff --git a/src/cmd_zline.cpp b/src/cmd_zline.cpp index a1d22e32a..d6394a7a3 100644 --- a/src/cmd_zline.cpp +++ b/src/cmd_zline.cpp @@ -19,10 +19,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_zline(Instance); + return new CommandZline(Instance); } -CmdResult cmd_zline::Handle (const char** parameters, int pcnt, User *user) +CmdResult CommandZline::Handle (const char** parameters, int pcnt, User *user) { if (pcnt >= 3) { diff --git a/src/modules/m_alltime.cpp b/src/modules/m_alltime.cpp index 1b48c237f..48b54137e 100644 --- a/src/modules/m_alltime.cpp +++ b/src/modules/m_alltime.cpp @@ -15,10 +15,10 @@ /* $ModDesc: Display timestamps from all servers connected to the network */ -class cmd_alltime : public Command +class CommandAlltime : public Command { public: - cmd_alltime(InspIRCd *Instance) : Command(Instance, "ALLTIME", 'o', 0) + CommandAlltime(InspIRCd *Instance) : Command(Instance, "ALLTIME", 'o', 0) { this->source = "m_alltime.so"; syntax.clear(); @@ -60,12 +60,12 @@ class cmd_alltime : public Command class Modulealltime : public Module { - cmd_alltime *mycommand; + CommandAlltime *mycommand; public: Modulealltime(InspIRCd *Me) : Module(Me) { - mycommand = new cmd_alltime(ServerInstance); + mycommand = new CommandAlltime(ServerInstance); ServerInstance->AddCommand(mycommand); } diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp index b02e892d3..a978d2fd9 100644 --- a/src/modules/m_cban.cpp +++ b/src/modules/m_cban.cpp @@ -44,10 +44,10 @@ cbanlist cbans; /** Handle /CBAN */ -class cmd_cban : public Command +class CommandCban : public Command { public: - cmd_cban(InspIRCd* Me) : Command(Me, "CBAN", 'o', 1) + CommandCban(InspIRCd* Me) : Command(Me, "CBAN", 'o', 1) { this->source = "m_cban.so"; this->syntax = " [ :]"; @@ -118,14 +118,14 @@ bool CBanComp(const CBan &ban1, const CBan &ban2) class ModuleCBan : public Module { - cmd_cban* mycommand; + CommandCban* mycommand; public: ModuleCBan(InspIRCd* Me) : Module(Me) { - mycommand = new cmd_cban(Me); + mycommand = new CommandCban(Me); ServerInstance->AddCommand(mycommand); } diff --git a/src/modules/m_cgiirc.cpp b/src/modules/m_cgiirc.cpp index b30b9316b..74802da88 100644 --- a/src/modules/m_cgiirc.cpp +++ b/src/modules/m_cgiirc.cpp @@ -40,13 +40,13 @@ public: }; typedef std::vector CGIHostlist; -class cmd_webirc : public Command +class CommandWebirc : public Command { InspIRCd* Me; CGIHostlist Hosts; bool notify; public: - cmd_webirc(InspIRCd* Me, CGIHostlist &Hosts, bool notify) : Command(Me, "WEBIRC", 0, 4, true), Hosts(Hosts), notify(notify) + CommandWebirc(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"; @@ -123,7 +123,7 @@ class CGIResolver : public Resolver class ModuleCgiIRC : public Module { - cmd_webirc* mycommand; + CommandWebirc* mycommand; bool NotifyOpers; CGIHostlist Hosts; public: @@ -131,7 +131,7 @@ public: { OnRehash(NULL,""); - mycommand=new cmd_webirc(Me, Hosts, NotifyOpers); + mycommand=new CommandWebirc(Me, Hosts, NotifyOpers); ServerInstance->AddCommand(mycommand); } diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index 24024e2f9..b505f10ee 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -18,10 +18,10 @@ /** Handle /CHECK */ -class cmd_check : public Command +class CommandCheck : public Command { public: - cmd_check (InspIRCd* Instance) : Command(Instance,"CHECK", 'o', 1) + CommandCheck (InspIRCd* Instance) : Command(Instance,"CHECK", 'o', 1) { this->source = "m_check.so"; syntax = "|||"; @@ -157,12 +157,12 @@ class cmd_check : public Command class ModuleCheck : public Module { private: - cmd_check *mycommand; + CommandCheck *mycommand; public: ModuleCheck(InspIRCd* Me) : Module(Me) { - mycommand = new cmd_check(ServerInstance); + mycommand = new CommandCheck(ServerInstance); ServerInstance->AddCommand(mycommand); } diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp index 4b53e7c12..e13dc1c31 100644 --- a/src/modules/m_chghost.cpp +++ b/src/modules/m_chghost.cpp @@ -17,12 +17,12 @@ /** Handle /CHGHOST */ -class cmd_chghost : public Command +class CommandChghost : public Command { private: char* hostmap; public: - cmd_chghost (InspIRCd* Instance, char* hmap) : Command(Instance,"CHGHOST",'o',2), hostmap(hmap) + CommandChghost (InspIRCd* Instance, char* hmap) : Command(Instance,"CHGHOST",'o',2), hostmap(hmap) { this->source = "m_chghost.so"; syntax = " "; @@ -75,14 +75,14 @@ class cmd_chghost : public Command class ModuleChgHost : public Module { - cmd_chghost* mycommand; + CommandChghost* mycommand; char hostmap[256]; public: ModuleChgHost(InspIRCd* Me) : Module(Me) { OnRehash(NULL,""); - mycommand = new cmd_chghost(ServerInstance, hostmap); + mycommand = new CommandChghost(ServerInstance, hostmap); ServerInstance->AddCommand(mycommand); } diff --git a/src/modules/m_chgident.cpp b/src/modules/m_chgident.cpp index 7ae98b37d..42a4ef747 100644 --- a/src/modules/m_chgident.cpp +++ b/src/modules/m_chgident.cpp @@ -17,10 +17,10 @@ /** Handle /CHGIDENT */ -class cmd_chgident : public Command +class CommandChgident : public Command { public: - cmd_chgident (InspIRCd* Instance) : Command(Instance,"CHGIDENT", 'o', 2) + CommandChgident (InspIRCd* Instance) : Command(Instance,"CHGIDENT", 'o', 2) { this->source = "m_chgident.so"; syntax = " "; @@ -68,13 +68,13 @@ class cmd_chgident : public Command class ModuleChgIdent : public Module { - cmd_chgident* mycommand; + CommandChgident* mycommand; public: ModuleChgIdent(InspIRCd* Me) : Module(Me) { - mycommand = new cmd_chgident(ServerInstance); + mycommand = new CommandChgident(ServerInstance); ServerInstance->AddCommand(mycommand); } diff --git a/src/modules/m_chgname.cpp b/src/modules/m_chgname.cpp index 987678b5b..dc90b016b 100644 --- a/src/modules/m_chgname.cpp +++ b/src/modules/m_chgname.cpp @@ -17,10 +17,10 @@ /** Handle /CHGNAME */ -class cmd_chgname : public Command +class CommandChgname : public Command { public: - cmd_chgname (InspIRCd* Instance) : Command(Instance,"CHGNAME", 'o', 2) + CommandChgname (InspIRCd* Instance) : Command(Instance,"CHGNAME", 'o', 2) { this->source = "m_chgname.so"; syntax = " "; @@ -64,13 +64,13 @@ class cmd_chgname : public Command class ModuleChgName : public Module { - cmd_chgname* mycommand; + CommandChgname* mycommand; public: ModuleChgName(InspIRCd* Me) : Module(Me) { - mycommand = new cmd_chgname(ServerInstance); + mycommand = new CommandChgname(ServerInstance); ServerInstance->AddCommand(mycommand); } diff --git a/src/modules/m_clones.cpp b/src/modules/m_clones.cpp index 82fdf535f..8f47a6432 100644 --- a/src/modules/m_clones.cpp +++ b/src/modules/m_clones.cpp @@ -18,10 +18,10 @@ /** Handle /CHECK */ -class cmd_clones : public Command +class CommandClones : public Command { public: - cmd_clones (InspIRCd* Instance) : Command(Instance,"CLONES", 'o', 1) + CommandClones (InspIRCd* Instance) : Command(Instance,"CLONES", 'o', 1) { this->source = "m_clones.so"; syntax = ""; @@ -69,12 +69,12 @@ class cmd_clones : public Command class ModuleClones : public Module { private: - cmd_clones *mycommand; + CommandClones *mycommand; public: ModuleClones(InspIRCd* Me) : Module(Me) { - mycommand = new cmd_clones(ServerInstance); + mycommand = new CommandClones(ServerInstance); ServerInstance->AddCommand(mycommand); } diff --git a/src/modules/m_close.cpp b/src/modules/m_close.cpp index 4b91ca789..7a823e799 100644 --- a/src/modules/m_close.cpp +++ b/src/modules/m_close.cpp @@ -15,11 +15,11 @@ /** Handle /CLOSE */ -class cmd_close : public Command +class CommandClose : public Command { public: /* Command 'close', needs operator */ - cmd_close (InspIRCd* Instance) : Command(Instance,"CLOSE", 'o', 0) + CommandClose (InspIRCd* Instance) : Command(Instance,"CLOSE", 'o', 0) { this->source = "m_close.so"; } @@ -55,13 +55,13 @@ class cmd_close : public Command class ModuleClose : public Module { - cmd_close* newcommand; + CommandClose* newcommand; public: ModuleClose(InspIRCd* Me) : Module(Me) { // Create a new command - newcommand = new cmd_close(ServerInstance); + newcommand = new CommandClose(ServerInstance); ServerInstance->AddCommand(newcommand); } diff --git a/src/modules/m_customtitle.cpp b/src/modules/m_customtitle.cpp index bd165034f..da28ea8af 100644 --- a/src/modules/m_customtitle.cpp +++ b/src/modules/m_customtitle.cpp @@ -18,11 +18,11 @@ /** Handle /TITLE */ -class cmd_title : public Command +class CommandTitle : public Command { public: - cmd_title (InspIRCd* Instance) : Command(Instance,"TITLE",0,2) + CommandTitle (InspIRCd* Instance) : Command(Instance,"TITLE",0,2) { this->source = "m_customtitle.so"; syntax = " "; @@ -110,13 +110,13 @@ bool OneOfMatches(const char* host, const char* ip, const char* hostlist) class ModuleCustomTitle : public Module { - cmd_title* mycommand; + CommandTitle* mycommand; public: ModuleCustomTitle(InspIRCd* Me) : Module(Me) { - mycommand = new cmd_title(ServerInstance); + mycommand = new CommandTitle(ServerInstance); ServerInstance->AddCommand(mycommand); } diff --git a/src/modules/m_cycle.cpp b/src/modules/m_cycle.cpp index aee8ba8cf..c271f024c 100644 --- a/src/modules/m_cycle.cpp +++ b/src/modules/m_cycle.cpp @@ -17,10 +17,10 @@ /** Handle /CYCLE */ -class cmd_cycle : public Command +class CommandCycle : public Command { public: - cmd_cycle (InspIRCd* Instance) : Command(Instance,"CYCLE", 0, 1, false, 3) + CommandCycle (InspIRCd* Instance) : Command(Instance,"CYCLE", 0, 1, false, 3) { this->source = "m_cycle.so"; syntax = " :[reason]"; @@ -79,13 +79,13 @@ class cmd_cycle : public Command class ModuleCycle : public Module { - cmd_cycle* mycommand; + CommandCycle* mycommand; public: ModuleCycle(InspIRCd* Me) : Module(Me) { - mycommand = new cmd_cycle(ServerInstance); + mycommand = new CommandCycle(ServerInstance); ServerInstance->AddCommand(mycommand); } diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index ebd3b8630..2b67654cc 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -44,10 +44,10 @@ dccallowlist* dl; typedef std::vector bannedfilelist; bannedfilelist bfl; -class cmd_dccallow : public Command +class CommandDccallow : public Command { public: - cmd_dccallow(InspIRCd* Me) : Command(Me, "DCCALLOW", 0, 0) + CommandDccallow(InspIRCd* Me) : Command(Me, "DCCALLOW", 0, 0) { this->source = "m_dccallow.so"; syntax = "{[+|-]