diff options
Diffstat (limited to 'src/modules')
79 files changed, 107 insertions, 107 deletions
diff --git a/src/modules/extra/m_rline.cpp b/src/modules/extra/m_rline.cpp index fb8887032..189479efc 100644 --- a/src/modules/extra/m_rline.cpp +++ b/src/modules/extra/m_rline.cpp @@ -131,7 +131,7 @@ class CommandRLine : public Command this->source = "m_rline.so"; } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { if (pcnt >= 3) diff --git a/src/modules/extra/m_sqllog.cpp b/src/modules/extra/m_sqllog.cpp index 7bb5ea1f1..ac38ed61c 100644 --- a/src/modules/extra/m_sqllog.cpp +++ b/src/modules/extra/m_sqllog.cpp @@ -276,7 +276,7 @@ class ModuleSQLLog : public Module return 0; } - virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, User *user, bool validated, const std::string &original_line) + virtual int OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line) { if ((command == "GLINE" || command == "KLINE" || command == "ELINE" || command == "ZLINE") && validated) { diff --git a/src/modules/extra/m_sqloper.cpp b/src/modules/extra/m_sqloper.cpp index 22034303d..a1e28bafe 100644 --- a/src/modules/extra/m_sqloper.cpp +++ b/src/modules/extra/m_sqloper.cpp @@ -68,7 +68,7 @@ public: databaseid = Conf.ReadValue("sqloper", "dbid", 0); /* Database ID of a database configured for the service provider module */ } - virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, User *user, bool validated, const std::string &original_line) + virtual int OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line) { if ((validated) && (command == "OPER")) { diff --git a/src/modules/extra/m_ssl_oper_cert.cpp b/src/modules/extra/m_ssl_oper_cert.cpp index f82537c95..312ec874b 100644 --- a/src/modules/extra/m_ssl_oper_cert.cpp +++ b/src/modules/extra/m_ssl_oper_cert.cpp @@ -33,7 +33,7 @@ class cmd_fingerprint : public Command syntax = "<nickname>"; } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { User* target = ServerInstance->FindNick(parameters[0]); if (target) @@ -112,7 +112,7 @@ class ModuleOperSSLCert : public Module return false; } - virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, User *user, bool validated, const std::string &original_line) + virtual int OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line) { irc::string cmd = command.c_str(); diff --git a/src/modules/extra/m_sslinfo.cpp b/src/modules/extra/m_sslinfo.cpp index 00fc2ee5b..b16c7f0ee 100644 --- a/src/modules/extra/m_sslinfo.cpp +++ b/src/modules/extra/m_sslinfo.cpp @@ -33,7 +33,7 @@ class cmd_sslinfo : public Command this->syntax = "<nick>"; } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { User* target = ServerInstance->FindNick(parameters[0]); ssl_cert* cert; diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp index 1e7c87241..e1600e9c6 100644 --- a/src/modules/m_alias.cpp +++ b/src/modules/m_alias.cpp @@ -126,7 +126,7 @@ class ModuleAlias : public Module } } - virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, User *user, bool validated, const std::string &original_line) + virtual int OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line) { User *u = NULL; diff --git a/src/modules/m_alltime.cpp b/src/modules/m_alltime.cpp index b5f4968d0..83dbe53b8 100644 --- a/src/modules/m_alltime.cpp +++ b/src/modules/m_alltime.cpp @@ -25,7 +25,7 @@ class CommandAlltime : public Command translation.push_back(TR_END); } - CmdResult Handle(const char **parameters, int pcnt, User *user) + CmdResult Handle(const char* const* parameters, int pcnt, User *user) { char fmtdate[64]; char fmtdate2[64]; diff --git a/src/modules/m_antibear.cpp b/src/modules/m_antibear.cpp index 2db7f58f3..53d267228 100644 --- a/src/modules/m_antibear.cpp +++ b/src/modules/m_antibear.cpp @@ -38,7 +38,7 @@ class ModuleAntiBear : public Module } - virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, User *user, bool validated, const std::string &original_line) + virtual int OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line) { if (command == "NOTICE" && !validated && pcnt > 1 && user->GetExt("antibear_timewait")) { diff --git a/src/modules/m_antibottler.cpp b/src/modules/m_antibottler.cpp index 80b55ea78..5a1e9a361 100644 --- a/src/modules/m_antibottler.cpp +++ b/src/modules/m_antibottler.cpp @@ -37,7 +37,7 @@ class ModuleAntiBottler : public Module return Version(1,1,0,1,VF_VENDOR,API_VERSION); } - virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, User *user, bool validated, const std::string &original_line) + virtual int OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line) { char data[MAXBUF]; strlcpy(data,original_line.c_str(),MAXBUF); diff --git a/src/modules/m_blockamsg.cpp b/src/modules/m_blockamsg.cpp index 08bdcba33..8d66ff052 100644 --- a/src/modules/m_blockamsg.cpp +++ b/src/modules/m_blockamsg.cpp @@ -84,7 +84,7 @@ class ModuleBlockAmsg : public Module action = IBLOCK_KILLOPERS; } - virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, User *user, bool validated, const std::string &original_line) + virtual int OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line) { // Don't do anything with unregistered users, or remote ones. if(!user || (user->registered != REG_ALL) || !IS_LOCAL(user)) diff --git a/src/modules/m_callerid.cpp b/src/modules/m_callerid.cpp index 2783cd484..e6b740520 100644 --- a/src/modules/m_callerid.cpp +++ b/src/modules/m_callerid.cpp @@ -93,7 +93,7 @@ public: * /accept nick1,nick2,nick3 * * to add 3 nicks and then show your list */ - CmdResult Handle(const char** parameters, int pcnt, User* user) + CmdResult Handle(const char* const* parameters, int pcnt, User* user) { if (pcnt < 1) { diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp index f13a3b97a..f74c5d58e 100644 --- a/src/modules/m_cban.cpp +++ b/src/modules/m_cban.cpp @@ -54,7 +54,7 @@ class CommandCban : public Command TRANSLATE4(TR_TEXT,TR_TEXT,TR_TEXT,TR_END); } - CmdResult Handle(const char** parameters, int pcnt, User *user) + CmdResult Handle(const char* const* parameters, int pcnt, User *user) { /* syntax: CBAN #channel time :reason goes here */ /* 'time' is a human-readable timestring, like 2d3h2s. */ diff --git a/src/modules/m_cgiirc.cpp b/src/modules/m_cgiirc.cpp index c1f6cf89e..633e95af9 100644 --- a/src/modules/m_cgiirc.cpp +++ b/src/modules/m_cgiirc.cpp @@ -61,7 +61,7 @@ class CommandWebirc : public Command this->source = "m_cgiirc.so"; this->syntax = "password client hostname ip"; } - CmdResult Handle(const char** parameters, int pcnt, User *user) + CmdResult Handle(const char* const* parameters, int pcnt, User *user) { if(user->registered == REG_ALL) return CMD_FAILURE; diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index e678ec1cb..14468ab36 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -27,7 +27,7 @@ class CommandCheck : public Command syntax = "<nickname>|<ip>|<hostmask>|<channel>"; } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { User *targuser; Channel *targchan; diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp index 005e71c8f..913921e8c 100644 --- a/src/modules/m_chghost.cpp +++ b/src/modules/m_chghost.cpp @@ -29,7 +29,7 @@ class CommandChghost : public Command TRANSLATE3(TR_NICK, TR_TEXT, TR_END); } - CmdResult Handle(const char** parameters, int pcnt, User *user) + CmdResult Handle(const char* const* parameters, int pcnt, User *user) { const char * x = parameters[1]; diff --git a/src/modules/m_chgident.cpp b/src/modules/m_chgident.cpp index 8e47e87e6..6f8528ef0 100644 --- a/src/modules/m_chgident.cpp +++ b/src/modules/m_chgident.cpp @@ -27,7 +27,7 @@ class CommandChgident : public Command TRANSLATE3(TR_NICK, TR_TEXT, TR_END); } - CmdResult Handle(const char** parameters, int pcnt, User *user) + CmdResult Handle(const char* const* parameters, int pcnt, User *user) { User* dest = ServerInstance->FindNick(parameters[0]); diff --git a/src/modules/m_chgname.cpp b/src/modules/m_chgname.cpp index f4d41ab8d..b2fafbf38 100644 --- a/src/modules/m_chgname.cpp +++ b/src/modules/m_chgname.cpp @@ -27,7 +27,7 @@ class CommandChgname : public Command TRANSLATE3(TR_NICK, TR_TEXT, TR_END); } - CmdResult Handle(const char** parameters, int pcnt, User *user) + CmdResult Handle(const char* const* parameters, int pcnt, User *user) { User* dest = ServerInstance->FindNick(parameters[0]); diff --git a/src/modules/m_clones.cpp b/src/modules/m_clones.cpp index eb2c6cd3d..a2b4e35fa 100644 --- a/src/modules/m_clones.cpp +++ b/src/modules/m_clones.cpp @@ -27,7 +27,7 @@ class CommandClones : public Command syntax = "<limit>"; } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { std::string clonesstr = "304 " + std::string(user->nick) + " :CLONES"; diff --git a/src/modules/m_close.cpp b/src/modules/m_close.cpp index da3760de1..ebffc6864 100644 --- a/src/modules/m_close.cpp +++ b/src/modules/m_close.cpp @@ -24,7 +24,7 @@ class CommandClose : public Command this->source = "m_close.so"; } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { std::map<std::string,int> closed; diff --git a/src/modules/m_conn_waitpong.cpp b/src/modules/m_conn_waitpong.cpp index 3b63f07a7..0a9ce3b8f 100644 --- a/src/modules/m_conn_waitpong.cpp +++ b/src/modules/m_conn_waitpong.cpp @@ -69,7 +69,7 @@ class ModuleWaitPong : public Module return 0; } - virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, User* user, bool validated, const std::string &original_line) + virtual int OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User* user, bool validated, const std::string &original_line) { if (command == "PONG") { diff --git a/src/modules/m_customtitle.cpp b/src/modules/m_customtitle.cpp index 6bde81c67..185055a5d 100644 --- a/src/modules/m_customtitle.cpp +++ b/src/modules/m_customtitle.cpp @@ -43,7 +43,7 @@ bool OneOfMatches(const char* host, const char* ip, const char* hostlist) return false; } - CmdResult Handle(const char** parameters, int pcnt, User* user) + CmdResult Handle(const char* const* parameters, int pcnt, User* user) { if (!IS_LOCAL(user)) return CMD_LOCALONLY; diff --git a/src/modules/m_cycle.cpp b/src/modules/m_cycle.cpp index e8714bb5c..882d4232e 100644 --- a/src/modules/m_cycle.cpp +++ b/src/modules/m_cycle.cpp @@ -27,7 +27,7 @@ class CommandCycle : public Command TRANSLATE3(TR_TEXT, TR_TEXT, TR_END); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { Channel* channel = ServerInstance->FindChan(parameters[0]); std::string reason = ConvToStr("Cycling"); diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index cdc8dc9c1..572188b7c 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -54,7 +54,7 @@ class CommandDccallow : public Command /* XXX we need to fix this so it can work with translation stuff (i.e. move +- into a seperate param */ } - CmdResult Handle(const char **parameters, int pcnt, User *user) + CmdResult Handle(const char* const* parameters, int pcnt, User *user) { /* syntax: DCCALLOW [+|-]<nick> (<time>) */ if (!pcnt) diff --git a/src/modules/m_devoice.cpp b/src/modules/m_devoice.cpp index 042718256..d4d018e93 100644 --- a/src/modules/m_devoice.cpp +++ b/src/modules/m_devoice.cpp @@ -32,7 +32,7 @@ class CommandDevoice : public Command TRANSLATE2(TR_TEXT, TR_END); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { Channel* c = ServerInstance->FindChan(parameters[0]); if (c && c->HasUser(user)) diff --git a/src/modules/m_filter.h b/src/modules/m_filter.h index 02adc7809..1be1f85ff 100644 --- a/src/modules/m_filter.h +++ b/src/modules/m_filter.h @@ -113,7 +113,7 @@ protected: virtual void OnSyncOtherMetaData(Module* proto, void* opaque, bool displayable = false); virtual void OnDecodeMetaData(int target_type, void* target, const std::string &extname, const std::string &extdata); virtual int OnStats(char symbol, User* user, string_list &results) = 0; - virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, User *user, bool validated, const std::string &original_line); + virtual int OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line); bool AppliesToMe(User* user, FilterResult* filter, int flags); }; @@ -127,7 +127,7 @@ class CommandFilter : public Command this->syntax = "<filter-definition> <type> <flags> [<gline-duration>] :<reason>"; } - CmdResult Handle(const char** parameters, int pcnt, User *user) + CmdResult Handle(const char* const* parameters, int pcnt, User *user) { if (pcnt == 1) { @@ -295,7 +295,7 @@ int FilterBase::OnUserPreNotice(User* user,void* dest,int target_type, std::stri return 0; } -int FilterBase::OnPreCommand(const std::string &command, const char** parameters, int pcnt, User *user, bool validated, const std::string &original_line) +int FilterBase::OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line) { flags = 0; if ((validated == 1) && (IS_LOCAL(user))) diff --git a/src/modules/m_globalload.cpp b/src/modules/m_globalload.cpp index 0d834a4bb..8c07205dc 100644 --- a/src/modules/m_globalload.cpp +++ b/src/modules/m_globalload.cpp @@ -27,7 +27,7 @@ class CommandGloadmodule : public Command TRANSLATE3(TR_TEXT, TR_TEXT, TR_END); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { std::string servername = pcnt > 1 ? parameters[1] : "*"; @@ -61,7 +61,7 @@ class CommandGunloadmodule : public Command syntax = "<modulename> [servermask]"; } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { std::string servername = pcnt > 1 ? parameters[1] : "*"; @@ -95,7 +95,7 @@ class CommandGreloadmodule : public Command syntax = "<modulename> [servermask]"; } - CmdResult Handle(const char** parameters, int pcnt, User *user) + CmdResult Handle(const char* const* parameters, int pcnt, User *user) { std::string servername = pcnt > 1 ? parameters[1] : "*"; diff --git a/src/modules/m_globops.cpp b/src/modules/m_globops.cpp index 661ff91dc..e932971dc 100644 --- a/src/modules/m_globops.cpp +++ b/src/modules/m_globops.cpp @@ -29,7 +29,7 @@ class CommandGlobops : public Command TRANSLATE2(TR_TEXT, TR_END); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { std::string line = "From " + std::string(user->nick) + ": "; for (int i = 0; i < pcnt; i++) diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp index ae6fcc87c..34bc9c62b 100644 --- a/src/modules/m_helpop.cpp +++ b/src/modules/m_helpop.cpp @@ -58,7 +58,7 @@ class CommandHelpop : public Command syntax = "<any-text>"; } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { irc::string parameter("start"); if (pcnt > 0) diff --git a/src/modules/m_jumpserver.cpp b/src/modules/m_jumpserver.cpp index 327fdc8f1..f744a3eea 100644 --- a/src/modules/m_jumpserver.cpp +++ b/src/modules/m_jumpserver.cpp @@ -37,7 +37,7 @@ class CommandJumpserver : public Command redirect_all_immediately = redirect_new_users = false; } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { int n_done = 0; reason = (pcnt < 4) ? "Please use this server/port instead" : parameters[3]; diff --git a/src/modules/m_knock.cpp b/src/modules/m_knock.cpp index b974c0688..a2fd985aa 100644 --- a/src/modules/m_knock.cpp +++ b/src/modules/m_knock.cpp @@ -27,7 +27,7 @@ class CommandKnock : public Command TRANSLATE3(TR_TEXT, TR_TEXT, TR_END); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { Channel* c = ServerInstance->FindChan(parameters[0]); std::string line; diff --git a/src/modules/m_lockserv.cpp b/src/modules/m_lockserv.cpp index dfda9aaf7..9d7a33ad6 100644 --- a/src/modules/m_lockserv.cpp +++ b/src/modules/m_lockserv.cpp @@ -34,7 +34,7 @@ public: syntax.clear(); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { locked = true; user->WriteServ("988 %s %s :Closed for new connections", user->nick, user->server); @@ -57,7 +57,7 @@ public: syntax.clear(); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { locked = false; user->WriteServ("989 %s %s :Open for new connections", user->nick, user->server); diff --git a/src/modules/m_namesx.cpp b/src/modules/m_namesx.cpp index 32906ed44..83541417b 100644 --- a/src/modules/m_namesx.cpp +++ b/src/modules/m_namesx.cpp @@ -49,7 +49,7 @@ class ModuleNamesX : public Module output.append(" NAMESX"); } - virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, User *user, bool validated, const std::string &original_line) + virtual int OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line) { irc::string c = command.c_str(); /* We don't actually create a proper command handler class for PROTOCTL, diff --git a/src/modules/m_nicklock.cpp b/src/modules/m_nicklock.cpp index 932a9d05b..24d319ca8 100644 --- a/src/modules/m_nicklock.cpp +++ b/src/modules/m_nicklock.cpp @@ -28,7 +28,7 @@ class CommandNicklock : public Command TRANSLATE3(TR_NICK, TR_TEXT, TR_END); } - CmdResult Handle(const char** parameters, int pcnt, User *user) + CmdResult Handle(const char* const* parameters, int pcnt, User *user) { User* target = ServerInstance->FindNick(parameters[0]); irc::string server; @@ -81,7 +81,7 @@ class CommandNickunlock : public Command syntax = "<locked-nick>"; } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { User* target = ServerInstance->FindNick(parameters[0]); if (target) diff --git a/src/modules/m_operlog.cpp b/src/modules/m_operlog.cpp index 02c6a30dd..eac5a9407 100644 --- a/src/modules/m_operlog.cpp +++ b/src/modules/m_operlog.cpp @@ -37,7 +37,7 @@ class ModuleOperLog : public Module } - virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, User *user, bool validated, const std::string &original_line) + virtual int OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line) { /* If the command doesnt appear to be valid, we dont want to mess with it. */ if (!validated) diff --git a/src/modules/m_opermotd.cpp b/src/modules/m_opermotd.cpp index 59e03a901..d7930b74a 100644 --- a/src/modules/m_opermotd.cpp +++ b/src/modules/m_opermotd.cpp @@ -49,7 +49,7 @@ class CommandOpermotd : public Command syntax = "[<servername>]"; } - CmdResult Handle (const char** parameters, int pcnt, User* user) + CmdResult Handle (const char* const* parameters, int pcnt, User* user) { return ShowOperMOTD(user); } diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp index 253b200bc..ff0efe561 100644 --- a/src/modules/m_override.cpp +++ b/src/modules/m_override.cpp @@ -59,7 +59,7 @@ class ModuleOverride : public Module } - virtual void OnPostCommand(const std::string &command, const char** parameters, int pcnt, User *user, CmdResult result, const std::string &original_line) + virtual void OnPostCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, CmdResult result, const std::string &original_line) { if ((NoisyOverride) && (OverriddenMode) && (irc::string(command.c_str()) == "MODE") && (result == CMD_SUCCESS)) { diff --git a/src/modules/m_password_hash.cpp b/src/modules/m_password_hash.cpp index 205df724e..0db1147dd 100644 --- a/src/modules/m_password_hash.cpp +++ b/src/modules/m_password_hash.cpp @@ -52,7 +52,7 @@ class CommandMkpasswd : public Command } } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { MakeHash(user, parameters[0], parameters[1]); /* NOTE: Don't propagate this across the network! diff --git a/src/modules/m_randquote.cpp b/src/modules/m_randquote.cpp index 1c794f7dd..b030b4305 100644 --- a/src/modules/m_randquote.cpp +++ b/src/modules/m_randquote.cpp @@ -31,7 +31,7 @@ class CommandRandquote : public Command this->source = "m_randquote.so"; } - CmdResult Handle (const char** parameters, int pcntl, User *user) + CmdResult Handle (const char* const* parameters, int pcntl, User *user) { std::string str; int fsize; diff --git a/src/modules/m_remove.cpp b/src/modules/m_remove.cpp index 5e2265f2d..868599948 100644 --- a/src/modules/m_remove.cpp +++ b/src/modules/m_remove.cpp @@ -69,7 +69,7 @@ class RemoveBase } } - CmdResult Handle (const char** parameters, int pcnt, User *user, bool neworder) + CmdResult Handle (const char* const* parameters, int pcnt, User *user, bool neworder) { const char* channame; const char* username; @@ -213,7 +213,7 @@ class CommandRemove : public Command, public RemoveBase TRANSLATE4(TR_NICK, TR_TEXT, TR_TEXT, TR_END); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { return RemoveBase::Handle(parameters, pcnt, user, false); } @@ -230,7 +230,7 @@ class CommandFpart : public Command, public RemoveBase syntax = "<channel> <nick> [<reason>]"; } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { return RemoveBase::Handle(parameters, pcnt, user, true); } diff --git a/src/modules/m_safelist.cpp b/src/modules/m_safelist.cpp index b04701f5d..889ecb0a6 100644 --- a/src/modules/m_safelist.cpp +++ b/src/modules/m_safelist.cpp @@ -69,7 +69,7 @@ class ModuleSafeList : public Module * OnPreCommand() * Intercept the LIST command. */ - virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, User *user, bool validated, const std::string &original_line) + virtual int OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line) { /* If the command doesnt appear to be valid, we dont want to mess with it. */ if (!validated) @@ -86,7 +86,7 @@ class ModuleSafeList : public Module * HandleList() * Handle (override) the LIST command. */ - int HandleList(const char** parameters, int pcnt, User* user) + int HandleList(const char* const* parameters, int pcnt, User* user) { int minusers = 0, maxusers = 0; diff --git a/src/modules/m_sajoin.cpp b/src/modules/m_sajoin.cpp index 5b7ead9b4..4bc5d31a2 100644 --- a/src/modules/m_sajoin.cpp +++ b/src/modules/m_sajoin.cpp @@ -27,7 +27,7 @@ class CommandSajoin : public Command TRANSLATE3(TR_NICK, TR_TEXT, TR_END); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { User* dest = ServerInstance->FindNick(parameters[0]); if (dest) diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp index 7db43661d..7a3a51585 100644 --- a/src/modules/m_samode.cpp +++ b/src/modules/m_samode.cpp @@ -26,7 +26,7 @@ class CommandSamode : public Command syntax = "<target> <modes> {<mode-parameters>}"; } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { /* * Handles an SAMODE request. Notifies all +s users. diff --git a/src/modules/m_sanick.cpp b/src/modules/m_sanick.cpp index c1115827a..2f3281ba7 100644 --- a/src/modules/m_sanick.cpp +++ b/src/modules/m_sanick.cpp @@ -27,7 +27,7 @@ class CommandSanick : public Command TRANSLATE3(TR_NICK, TR_TEXT, TR_END); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { User* target = ServerInstance->FindNick(parameters[0]); if (target) diff --git a/src/modules/m_sapart.cpp b/src/modules/m_sapart.cpp index ce21b967a..1a176da85 100644 --- a/src/modules/m_sapart.cpp +++ b/src/modules/m_sapart.cpp @@ -27,7 +27,7 @@ class CommandSapart : public Command TRANSLATE4(TR_NICK, TR_TEXT, TR_TEXT, TR_END); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { User* dest = ServerInstance->FindNick(parameters[0]); Channel* channel = ServerInstance->FindChan(parameters[1]); diff --git a/src/modules/m_saquit.cpp b/src/modules/m_saquit.cpp index 82b44ede5..c1ff50dd5 100644 --- a/src/modules/m_saquit.cpp +++ b/src/modules/m_saquit.cpp @@ -27,7 +27,7 @@ class CommandSaquit : public Command TRANSLATE3(TR_NICK, TR_TEXT, TR_END); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { User* dest = ServerInstance->FindNick(parameters[0]); if (dest) diff --git a/src/modules/m_securelist.cpp b/src/modules/m_securelist.cpp index 57dfd3794..8ba9f9232 100644 --- a/src/modules/m_securelist.cpp +++ b/src/modules/m_securelist.cpp @@ -54,7 +54,7 @@ class ModuleSecureList : public Module * OnPreCommand() * Intercept the LIST command. */ - virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, User *user, bool validated, const std::string &original_line) + virtual int OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line) { /* If the command doesnt appear to be valid, we dont want to mess with it. */ if (!validated) diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp index 2410f4140..90bd3c7cd 100644 --- a/src/modules/m_sethost.cpp +++ b/src/modules/m_sethost.cpp @@ -29,7 +29,7 @@ class CommandSethost : public Command TRANSLATE2(TR_TEXT, TR_END); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { size_t len = 0; for (const char* x = parameters[0]; *x; x++, len++) diff --git a/src/modules/m_setident.cpp b/src/modules/m_setident.cpp index eeed92042..966b9b602 100644 --- a/src/modules/m_setident.cpp +++ b/src/modules/m_setident.cpp @@ -27,7 +27,7 @@ class CommandSetident : public Command TRANSLATE2(TR_TEXT, TR_END); } - CmdResult Handle(const char** parameters, int pcnt, User *user) + CmdResult Handle(const char* const* parameters, int pcnt, User *user) { if (!*parameters[0]) { diff --git a/src/modules/m_setidle.cpp b/src/modules/m_setidle.cpp index 045ac5f4a..f6e1b8b86 100644 --- a/src/modules/m_setidle.cpp +++ b/src/modules/m_setidle.cpp @@ -27,7 +27,7 @@ class CommandSetidle : public Command TRANSLATE2(TR_TEXT, TR_END); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { time_t idle = ServerInstance->Duration(parameters[0]); if (idle < 1) diff --git a/src/modules/m_setname.cpp b/src/modules/m_setname.cpp index d0dce6c77..c93bf424a 100644 --- a/src/modules/m_setname.cpp +++ b/src/modules/m_setname.cpp @@ -27,7 +27,7 @@ class CommandSetname : public Command TRANSLATE2(TR_TEXT, TR_END); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { if (!*parameters[0]) { diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp index 542dc0a04..9361b9a67 100644 --- a/src/modules/m_silence.cpp +++ b/src/modules/m_silence.cpp @@ -32,7 +32,7 @@ class CommandSilence : public Command TRANSLATE2(TR_TEXT, TR_END); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { if (!pcnt) { diff --git a/src/modules/m_silence_ext.cpp b/src/modules/m_silence_ext.cpp index 8aec2b0ad..1467df014 100644 --- a/src/modules/m_silence_ext.cpp +++ b/src/modules/m_silence_ext.cpp @@ -62,7 +62,7 @@ class CommandSilence : public Command TRANSLATE3(TR_TEXT, TR_TEXT, TR_END); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { if (!pcnt) { diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 98c3758d2..119e98220 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -114,14 +114,14 @@ int ModuleSpanningTree::CountServs() return Utils->serverlist.size(); } -void ModuleSpanningTree::HandleLinks(const char** parameters, int pcnt, User* user) +void ModuleSpanningTree::HandleLinks(const char* const* parameters, int pcnt, User* user) { ShowLinks(Utils->TreeRoot,user,0); user->WriteServ("365 %s * :End of /LINKS list.",user->nick); return; } -void ModuleSpanningTree::HandleLusers(const char** parameters, int pcnt, User* user) +void ModuleSpanningTree::HandleLusers(const char* const* parameters, int pcnt, User* user) { unsigned int n_users = ServerInstance->Users->UserCount(); @@ -322,7 +322,7 @@ void ModuleSpanningTree::AutoConnectServers(time_t curtime) } } -int ModuleSpanningTree::HandleVersion(const char** parameters, int pcnt, User* user) +int ModuleSpanningTree::HandleVersion(const char* const* parameters, int pcnt, User* user) { // we've already checked if pcnt > 0, so this is safe TreeServer* found = Utils->FindServerMask(parameters[0]); @@ -392,7 +392,7 @@ void ModuleSpanningTree::RemoteMessage(User* user, const char* format, ...) SendingRemoteMessage = false; } -int ModuleSpanningTree::HandleConnect(const char** parameters, int pcnt, User* user) +int ModuleSpanningTree::HandleConnect(const char* const* parameters, int pcnt, User* user) { for (std::vector<Link>::iterator x = Utils->LinkBlocks.begin(); x < Utils->LinkBlocks.end(); x++) { diff --git a/src/modules/m_spanningtree/main.h b/src/modules/m_spanningtree/main.h index 5eeaca7b1..e8c83221e 100644 --- a/src/modules/m_spanningtree/main.h +++ b/src/modules/m_spanningtree/main.h @@ -75,11 +75,11 @@ class ModuleSpanningTree : public Module /** Handle LINKS command */ - void HandleLinks(const char** parameters, int pcnt, User* user); + void HandleLinks(const char* const* parameters, int pcnt, User* user); /** Handle LUSERS command */ - void HandleLusers(const char** parameters, int pcnt, User* user); + void HandleLusers(const char* const* parameters, int pcnt, User* user); /** Show MAP output to a user (recursive) */ @@ -87,35 +87,35 @@ class ModuleSpanningTree : public Module /** Handle remote MOTD */ - int HandleMotd(const char** parameters, int pcnt, User* user); + int HandleMotd(const char* const* parameters, int pcnt, User* user); /** Handle remote ADMIN */ - int HandleAdmin(const char** parameters, int pcnt, User* user); + int HandleAdmin(const char* const* parameters, int pcnt, User* user); /** Handle remote STATS */ - int HandleStats(const char** parameters, int pcnt, User* user); + int HandleStats(const char* const* parameters, int pcnt, User* user); /** Handle MAP command */ - void HandleMap(const char** parameters, int pcnt, User* user); + void HandleMap(const char* const* parameters, int pcnt, User* user); /** Handle SQUIT */ - int HandleSquit(const char** parameters, int pcnt, User* user); + int HandleSquit(const char* const* parameters, int pcnt, User* user); /** Handle TIME */ - int HandleTime(const char** parameters, int pcnt, User* user); + int HandleTime(const char* const* parameters, int pcnt, User* user); /** Handle remote WHOIS */ - int HandleRemoteWhois(const char** parameters, int pcnt, User* user); + int HandleRemoteWhois(const char* const* parameters, int pcnt, User* user); /** Handle remote MODULES */ - int HandleModules(const char** parameters, int pcnt, User* user); + int HandleModules(const char* const* parameters, int pcnt, User* user); /** Ping all local servers */ @@ -131,11 +131,11 @@ class ModuleSpanningTree : public Module /** Handle remote VERSON */ - int HandleVersion(const char** parameters, int pcnt, User* user); + int HandleVersion(const char* const* parameters, int pcnt, User* user); /** Handle CONNECT */ - int HandleConnect(const char** parameters, int pcnt, User* user); + int HandleConnect(const char* const* parameters, int pcnt, User* user); /** Send out time sync to all servers */ @@ -157,8 +157,8 @@ class ModuleSpanningTree : public Module ** *** MODULE EVENTS *** **/ - virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, User *user, bool validated, const std::string &original_line); - virtual void OnPostCommand(const std::string &command, const char** parameters, int pcnt, User *user, CmdResult result, const std::string &original_line); + virtual int OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line); + virtual void OnPostCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, CmdResult result, const std::string &original_line); virtual void OnGetServerDescription(const std::string &servername,std::string &description); virtual void OnUserInvite(User* source,User* dest,Channel* channel, time_t); virtual void OnPostLocalTopicChange(User* user, Channel* chan, const std::string &topic); diff --git a/src/modules/m_spanningtree/override_admin.cpp b/src/modules/m_spanningtree/override_admin.cpp index e011383d2..c090cb071 100644 --- a/src/modules/m_spanningtree/override_admin.cpp +++ b/src/modules/m_spanningtree/override_admin.cpp @@ -33,7 +33,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 m_spanningtree/rsquit.h */ -int ModuleSpanningTree::HandleAdmin(const char** parameters, int pcnt, User* user) +int ModuleSpanningTree::HandleAdmin(const char* const* parameters, int pcnt, User* user) { if (pcnt > 0) { diff --git a/src/modules/m_spanningtree/override_map.cpp b/src/modules/m_spanningtree/override_map.cpp index 9b117272a..853010b4d 100644 --- a/src/modules/m_spanningtree/override_map.cpp +++ b/src/modules/m_spanningtree/override_map.cpp @@ -109,7 +109,7 @@ void ModuleSpanningTree::ShowMap(TreeServer* Current, User* user, int depth, cha // and divisons, we instead render the map onto a backplane of characters // (a character matrix), then draw the branches as a series of "L" shapes // from the nodes. This is not only friendlier on CPU it uses less stack. -void ModuleSpanningTree::HandleMap(const char** parameters, int pcnt, User* user) +void ModuleSpanningTree::HandleMap(const char* const* parameters, int pcnt, User* user) { // This array represents a virtual screen which we will // "scratch" draw to, as the console device of an irc diff --git a/src/modules/m_spanningtree/override_modules.cpp b/src/modules/m_spanningtree/override_modules.cpp index adecb7c34..c47d642f8 100644 --- a/src/modules/m_spanningtree/override_modules.cpp +++ b/src/modules/m_spanningtree/override_modules.cpp @@ -33,7 +33,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 m_spanningtree/rsquit.h */ -int ModuleSpanningTree::HandleModules(const char** parameters, int pcnt, User* user) +int ModuleSpanningTree::HandleModules(const char* const* parameters, int pcnt, User* user) { if (pcnt > 0) { diff --git a/src/modules/m_spanningtree/override_motd.cpp b/src/modules/m_spanningtree/override_motd.cpp index f8398bea9..4aa94334a 100644 --- a/src/modules/m_spanningtree/override_motd.cpp +++ b/src/modules/m_spanningtree/override_motd.cpp @@ -33,7 +33,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 m_spanningtree/rsquit.h */ -int ModuleSpanningTree::HandleMotd(const char** parameters, int pcnt, User* user) +int ModuleSpanningTree::HandleMotd(const char* const* parameters, int pcnt, User* user) { if (pcnt > 0) { diff --git a/src/modules/m_spanningtree/override_squit.cpp b/src/modules/m_spanningtree/override_squit.cpp index 263b8cf2c..1a82e4bfb 100644 --- a/src/modules/m_spanningtree/override_squit.cpp +++ b/src/modules/m_spanningtree/override_squit.cpp @@ -33,7 +33,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 m_spanningtree/rsquit.h */ -int ModuleSpanningTree::HandleSquit(const char** parameters, int pcnt, User* user) +int ModuleSpanningTree::HandleSquit(const char* const* parameters, int pcnt, User* user) { TreeServer* s = Utils->FindServerMask(parameters[0]); if (s) diff --git a/src/modules/m_spanningtree/override_stats.cpp b/src/modules/m_spanningtree/override_stats.cpp index 0ba18e42a..ba6650d6b 100644 --- a/src/modules/m_spanningtree/override_stats.cpp +++ b/src/modules/m_spanningtree/override_stats.cpp @@ -33,7 +33,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 m_spanningtree/rsquit.h */ -int ModuleSpanningTree::HandleStats(const char** parameters, int pcnt, User* user) +int ModuleSpanningTree::HandleStats(const char* const* parameters, int pcnt, User* user) { if (pcnt > 1) { diff --git a/src/modules/m_spanningtree/override_time.cpp b/src/modules/m_spanningtree/override_time.cpp index af2e4f576..cbd29f535 100644 --- a/src/modules/m_spanningtree/override_time.cpp +++ b/src/modules/m_spanningtree/override_time.cpp @@ -33,7 +33,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 m_spanningtree/rsquit.h */ -int ModuleSpanningTree::HandleTime(const char** parameters, int pcnt, User* user) +int ModuleSpanningTree::HandleTime(const char* const* parameters, int pcnt, User* user) { if ((IS_LOCAL(user)) && (pcnt)) { diff --git a/src/modules/m_spanningtree/override_whois.cpp b/src/modules/m_spanningtree/override_whois.cpp index 4721e8bcd..3cb282cb0 100644 --- a/src/modules/m_spanningtree/override_whois.cpp +++ b/src/modules/m_spanningtree/override_whois.cpp @@ -33,7 +33,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 m_spanningtree/rsquit.h */ -int ModuleSpanningTree::HandleRemoteWhois(const char** parameters, int pcnt, User* user) +int ModuleSpanningTree::HandleRemoteWhois(const char* const* parameters, int pcnt, User* user) { if ((IS_LOCAL(user)) && (pcnt > 1)) { diff --git a/src/modules/m_spanningtree/postcommand.cpp b/src/modules/m_spanningtree/postcommand.cpp index bd15113bc..de7142bea 100644 --- a/src/modules/m_spanningtree/postcommand.cpp +++ b/src/modules/m_spanningtree/postcommand.cpp @@ -33,7 +33,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 m_spanningtree/rsquit.h */ -void ModuleSpanningTree::OnPostCommand(const std::string &command, const char** parameters, int pcnt, User *user, CmdResult result, const std::string &original_line) +void ModuleSpanningTree::OnPostCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, CmdResult result, const std::string &original_line) { if ((result == CMD_SUCCESS) && (ServerInstance->IsValidModuleCommand(command, pcnt, user))) { diff --git a/src/modules/m_spanningtree/precommand.cpp b/src/modules/m_spanningtree/precommand.cpp index 00f2c598c..324aa3e14 100644 --- a/src/modules/m_spanningtree/precommand.cpp +++ b/src/modules/m_spanningtree/precommand.cpp @@ -33,7 +33,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 m_spanningtree/rsquit.h */ -int ModuleSpanningTree::OnPreCommand(const std::string &command, const char** parameters, int pcnt, User *user, bool validated, const std::string &original_line) +int ModuleSpanningTree::OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line) { /* If the command doesnt appear to be valid, we dont want to mess with it. */ if (!validated) diff --git a/src/modules/m_spanningtree/rconnect.cpp b/src/modules/m_spanningtree/rconnect.cpp index 5cfb681d0..32308377a 100644 --- a/src/modules/m_spanningtree/rconnect.cpp +++ b/src/modules/m_spanningtree/rconnect.cpp @@ -36,7 +36,7 @@ cmd_rconnect::cmd_rconnect (InspIRCd* Instance, Module* Callback, SpanningTreeUt syntax = "<remote-server-mask> <target-server-mask>"; } -CmdResult cmd_rconnect::Handle (const char** parameters, int pcnt, User *user) +CmdResult cmd_rconnect::Handle (const char* const* parameters, int pcnt, User *user) { if (IS_LOCAL(user)) { diff --git a/src/modules/m_spanningtree/rconnect.h b/src/modules/m_spanningtree/rconnect.h index 55f4d8655..94035dce2 100644 --- a/src/modules/m_spanningtree/rconnect.h +++ b/src/modules/m_spanningtree/rconnect.h @@ -22,7 +22,7 @@ class cmd_rconnect : public Command SpanningTreeUtilities* Utils; /* Utility class */ public: cmd_rconnect (InspIRCd* Instance, Module* Callback, SpanningTreeUtilities* Util); - CmdResult Handle (const char** parameters, int pcnt, User *user); + CmdResult Handle (const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/src/modules/m_spanningtree/rsquit.cpp b/src/modules/m_spanningtree/rsquit.cpp index 236702b72..a4158a20d 100644 --- a/src/modules/m_spanningtree/rsquit.cpp +++ b/src/modules/m_spanningtree/rsquit.cpp @@ -36,7 +36,7 @@ cmd_rsquit::cmd_rsquit (InspIRCd* Instance, Module* Callback, SpanningTreeUtilit syntax = "<remote-server-mask> [target-server-mask]"; } -CmdResult cmd_rsquit::Handle (const char** parameters, int pcnt, User *user) +CmdResult cmd_rsquit::Handle (const char* const* parameters, int pcnt, User *user) { if (IS_LOCAL(user)) { diff --git a/src/modules/m_spanningtree/rsquit.h b/src/modules/m_spanningtree/rsquit.h index 095859dc7..5dce2f310 100644 --- a/src/modules/m_spanningtree/rsquit.h +++ b/src/modules/m_spanningtree/rsquit.h @@ -22,7 +22,7 @@ class cmd_rsquit : public Command SpanningTreeUtilities* Utils; /* Utility class */ public: cmd_rsquit (InspIRCd* Instance, Module* Callback, SpanningTreeUtilities* Util); - CmdResult Handle (const char** parameters, int pcnt, User *user); + CmdResult Handle (const char* const* parameters, int pcnt, User *user); void NoticeUser(User* user, const std::string &msg); }; diff --git a/src/modules/m_svshold.cpp b/src/modules/m_svshold.cpp index 10e05ddf2..4701a717b 100644 --- a/src/modules/m_svshold.cpp +++ b/src/modules/m_svshold.cpp @@ -57,7 +57,7 @@ class CommandSvshold : public Command TRANSLATE4(TR_NICK, TR_TEXT, TR_TEXT, TR_END); } - CmdResult Handle(const char** parameters, int pcnt, User *user) + CmdResult Handle(const char* const* parameters, int pcnt, User *user) { /* syntax: svshold nickname time :reason goes here */ /* 'time' is a human-readable timestring, like 2d3h2s. */ diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp index 25a860ae4..ef5c5c35f 100644 --- a/src/modules/m_swhois.cpp +++ b/src/modules/m_swhois.cpp @@ -28,7 +28,7 @@ class CommandSwhois : public Command TRANSLATE3(TR_NICK, TR_TEXT, TR_END); } - CmdResult Handle(const char** parameters, int pcnt, User* user) + CmdResult Handle(const char* const* parameters, int pcnt, User* user) { User* dest = ServerInstance->FindNick(parameters[0]); @@ -210,7 +210,7 @@ class ModuleSWhois : public Module } } - virtual void OnPostCommand(const std::string &command, const char **params, int pcnt, User *user, CmdResult result, const std::string &original_line) + virtual void OnPostCommand(const std::string &command, const char* const* params, int pcnt, User *user, CmdResult result, const std::string &original_line) { if ((command != "OPER") || (result != CMD_SUCCESS)) return; diff --git a/src/modules/m_taxonomy.cpp b/src/modules/m_taxonomy.cpp index 1490d90ef..ec36c8a8e 100644 --- a/src/modules/m_taxonomy.cpp +++ b/src/modules/m_taxonomy.cpp @@ -29,7 +29,7 @@ class CommandTaxonomy : public Command syntax = "<nickname>"; } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { User* dest = ServerInstance->FindNick(parameters[0]); if (dest) diff --git a/src/modules/m_testcommand.cpp b/src/modules/m_testcommand.cpp index 0cf5bbcd2..053dc781a 100644 --- a/src/modules/m_testcommand.cpp +++ b/src/modules/m_testcommand.cpp @@ -26,7 +26,7 @@ class CommandDalinfo : public Command this->source = "m_testcommand.so"; } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { user->WriteServ("NOTICE %s :*** DALNet had nothing to do with it.", user->nick); return CMD_FAILURE; diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index 3e5823d1f..77660da7b 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -40,7 +40,7 @@ class CommandTban : public Command TRANSLATE4(TR_TEXT, TR_TEXT, TR_TEXT, TR_END); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { Channel* channel = ServerInstance->FindChan(parameters[0]); if (channel) diff --git a/src/modules/m_tline.cpp b/src/modules/m_tline.cpp index a38deeb5f..20921bc56 100644 --- a/src/modules/m_tline.cpp +++ b/src/modules/m_tline.cpp @@ -27,7 +27,7 @@ class CommandTline : public Command this->syntax = "<mask>"; } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { float n_counted = 0; float n_matched = 0; diff --git a/src/modules/m_uhnames.cpp b/src/modules/m_uhnames.cpp index 2a86a0c4b..dddf45591 100644 --- a/src/modules/m_uhnames.cpp +++ b/src/modules/m_uhnames.cpp @@ -56,7 +56,7 @@ class ModuleUHNames : public Module ServerInstance->Modules->SetPriority(this, I_OnUserList, PRIO_BEFORE, &namesx); } - virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, User *user, bool validated, const std::string &original_line) + virtual int OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line) { irc::string c = command.c_str(); /* We don't actually create a proper command handler class for PROTOCTL, diff --git a/src/modules/m_uninvite.cpp b/src/modules/m_uninvite.cpp index 207fddf32..3499d5051 100644 --- a/src/modules/m_uninvite.cpp +++ b/src/modules/m_uninvite.cpp @@ -27,7 +27,7 @@ class CommandUninvite : public Command TRANSLATE3(TR_NICK, TR_TEXT, TR_END); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { User* u = ServerInstance->FindNick(parameters[0]); Channel* c = ServerInstance->FindChan(parameters[1]); diff --git a/src/modules/m_userip.cpp b/src/modules/m_userip.cpp index 9102fbc93..bca1d1acf 100644 --- a/src/modules/m_userip.cpp +++ b/src/modules/m_userip.cpp @@ -26,7 +26,7 @@ class CommandUserip : public Command syntax = "<nick>{,<nick>}"; } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { std::string retbuf = std::string("340 ") + user->nick + " :"; diff --git a/src/modules/m_vhost.cpp b/src/modules/m_vhost.cpp index 371f99dfa..598109966 100644 --- a/src/modules/m_vhost.cpp +++ b/src/modules/m_vhost.cpp @@ -26,7 +26,7 @@ class CommandVhost : public Command syntax = "<username> <password>"; } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { ConfigReader *Conf = new ConfigReader(ServerInstance); diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp index eb1be40dc..b8539180a 100644 --- a/src/modules/m_watch.cpp +++ b/src/modules/m_watch.cpp @@ -84,7 +84,7 @@ class CommandSVSWatch : public Command TRANSLATE3(TR_NICK, TR_TEXT, TR_END); /* we watch for a nick. not a UID. */ } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { if (!ServerInstance->ULine(user->server)) return CMD_FAILURE; @@ -231,7 +231,7 @@ class CommandWatch : public Command TRANSLATE2(TR_TEXT, TR_END); /* we watch for a nick. not a UID. */ } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { if (!pcnt) { |