From dd36852a52e8541306b76c5b88bce8ab9b36654c Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 20 Feb 2008 19:07:07 +0000 Subject: Wheee, mass commit! this adds const stafety, throwing a compile error if anyone does: "parameters[n] = blahvar;" in a command handler etc. where they REALLY SHOULD NOT fuck with the value and should copy the pointer. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8971 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/commands/cmd_admin.h | 2 +- include/commands/cmd_away.h | 2 +- include/commands/cmd_clearcache.h | 2 +- include/commands/cmd_commands.h | 2 +- include/commands/cmd_connect.h | 2 +- include/commands/cmd_die.h | 2 +- include/commands/cmd_eline.h | 2 +- include/commands/cmd_gline.h | 2 +- include/commands/cmd_info.h | 2 +- include/commands/cmd_invite.h | 2 +- include/commands/cmd_ison.h | 2 +- include/commands/cmd_join.h | 2 +- include/commands/cmd_kick.h | 2 +- include/commands/cmd_kill.h | 2 +- include/commands/cmd_kline.h | 2 +- include/commands/cmd_links.h | 2 +- include/commands/cmd_list.h | 2 +- include/commands/cmd_loadmodule.h | 2 +- include/commands/cmd_lusers.h | 2 +- include/commands/cmd_map.h | 2 +- include/commands/cmd_mode.h | 2 +- include/commands/cmd_modules.h | 2 +- include/commands/cmd_motd.h | 2 +- include/commands/cmd_names.h | 2 +- include/commands/cmd_nick.h | 2 +- include/commands/cmd_notice.h | 2 +- include/commands/cmd_oper.h | 2 +- include/commands/cmd_part.h | 2 +- include/commands/cmd_pass.h | 2 +- include/commands/cmd_ping.h | 2 +- include/commands/cmd_pong.h | 2 +- include/commands/cmd_privmsg.h | 2 +- include/commands/cmd_qline.h | 2 +- include/commands/cmd_quit.h | 2 +- include/commands/cmd_rehash.h | 2 +- include/commands/cmd_reloadmodule.h | 2 +- include/commands/cmd_restart.h | 2 +- include/commands/cmd_rules.h | 2 +- include/commands/cmd_server.h | 2 +- include/commands/cmd_squit.h | 2 +- include/commands/cmd_stats.h | 2 +- include/commands/cmd_time.h | 2 +- include/commands/cmd_topic.h | 2 +- include/commands/cmd_trace.h | 2 +- include/commands/cmd_unloadmodule.h | 2 +- include/commands/cmd_user.h | 2 +- include/commands/cmd_userhost.h | 2 +- include/commands/cmd_version.h | 2 +- include/commands/cmd_wallops.h | 2 +- include/commands/cmd_who.h | 2 +- include/commands/cmd_whois.h | 2 +- include/commands/cmd_whowas.h | 2 +- include/commands/cmd_zline.h | 2 +- 53 files changed, 53 insertions(+), 53 deletions(-) (limited to 'include/commands') diff --git a/include/commands/cmd_admin.h b/include/commands/cmd_admin.h index cbec10e57..f8181971b 100644 --- a/include/commands/cmd_admin.h +++ b/include/commands/cmd_admin.h @@ -34,7 +34,7 @@ class CommandAdmin : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_away.h b/include/commands/cmd_away.h index ac932ec1c..48bc35f6f 100644 --- a/include/commands/cmd_away.h +++ b/include/commands/cmd_away.h @@ -36,7 +36,7 @@ class CommandAway : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_clearcache.h b/include/commands/cmd_clearcache.h index d3435391a..c2edc4a08 100644 --- a/include/commands/cmd_clearcache.h +++ b/include/commands/cmd_clearcache.h @@ -35,7 +35,7 @@ class CommandClearcache : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_commands.h b/include/commands/cmd_commands.h index 801c49be7..fbb0be259 100644 --- a/include/commands/cmd_commands.h +++ b/include/commands/cmd_commands.h @@ -36,7 +36,7 @@ class CommandCommands : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_connect.h b/include/commands/cmd_connect.h index 907108a13..85a78adb7 100644 --- a/include/commands/cmd_connect.h +++ b/include/commands/cmd_connect.h @@ -36,7 +36,7 @@ class CommandConnect : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_die.h b/include/commands/cmd_die.h index 903fa8a25..7b805ee6e 100644 --- a/include/commands/cmd_die.h +++ b/include/commands/cmd_die.h @@ -36,7 +36,7 @@ class CommandDie : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_eline.h b/include/commands/cmd_eline.h index 0bcfbfc96..0849dcf82 100644 --- a/include/commands/cmd_eline.h +++ b/include/commands/cmd_eline.h @@ -36,7 +36,7 @@ class CommandEline : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_gline.h b/include/commands/cmd_gline.h index 11e67448a..509f94de9 100644 --- a/include/commands/cmd_gline.h +++ b/include/commands/cmd_gline.h @@ -36,7 +36,7 @@ class CommandGline : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_info.h b/include/commands/cmd_info.h index c21e35a7f..692a1938e 100644 --- a/include/commands/cmd_info.h +++ b/include/commands/cmd_info.h @@ -36,7 +36,7 @@ class CommandInfo : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_invite.h b/include/commands/cmd_invite.h index 8d50adb4c..2df7a8a80 100644 --- a/include/commands/cmd_invite.h +++ b/include/commands/cmd_invite.h @@ -36,7 +36,7 @@ class CommandInvite : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_ison.h b/include/commands/cmd_ison.h index 146cd4216..31bd9b659 100644 --- a/include/commands/cmd_ison.h +++ b/include/commands/cmd_ison.h @@ -36,7 +36,7 @@ class CommandIson : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_join.h b/include/commands/cmd_join.h index 9e5a5a918..9f095c73c 100644 --- a/include/commands/cmd_join.h +++ b/include/commands/cmd_join.h @@ -36,7 +36,7 @@ class CommandJoin : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_kick.h b/include/commands/cmd_kick.h index 35ec1434d..b29afd899 100644 --- a/include/commands/cmd_kick.h +++ b/include/commands/cmd_kick.h @@ -36,7 +36,7 @@ class CommandKick : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_kill.h b/include/commands/cmd_kill.h index 16d80bb5e..7d5b24fb0 100644 --- a/include/commands/cmd_kill.h +++ b/include/commands/cmd_kill.h @@ -36,7 +36,7 @@ class CommandKill : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_kline.h b/include/commands/cmd_kline.h index fda1f39f4..c0601fe6f 100644 --- a/include/commands/cmd_kline.h +++ b/include/commands/cmd_kline.h @@ -36,7 +36,7 @@ class CommandKline : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_links.h b/include/commands/cmd_links.h index 8f1f957d5..122de3782 100644 --- a/include/commands/cmd_links.h +++ b/include/commands/cmd_links.h @@ -36,7 +36,7 @@ class CommandLinks : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_list.h b/include/commands/cmd_list.h index 4e0e03314..a84a9c9c6 100644 --- a/include/commands/cmd_list.h +++ b/include/commands/cmd_list.h @@ -36,7 +36,7 @@ class CommandList : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_loadmodule.h b/include/commands/cmd_loadmodule.h index 14b843449..7255e3de7 100644 --- a/include/commands/cmd_loadmodule.h +++ b/include/commands/cmd_loadmodule.h @@ -36,7 +36,7 @@ class CommandLoadmodule : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_lusers.h b/include/commands/cmd_lusers.h index 70e1d885f..9242d4e8b 100644 --- a/include/commands/cmd_lusers.h +++ b/include/commands/cmd_lusers.h @@ -36,7 +36,7 @@ class CommandLusers : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_map.h b/include/commands/cmd_map.h index 85e24b542..77e77c901 100644 --- a/include/commands/cmd_map.h +++ b/include/commands/cmd_map.h @@ -36,7 +36,7 @@ class CommandMap : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_mode.h b/include/commands/cmd_mode.h index 32d3528e3..f573f7d1a 100644 --- a/include/commands/cmd_mode.h +++ b/include/commands/cmd_mode.h @@ -35,7 +35,7 @@ class CommandMode : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_modules.h b/include/commands/cmd_modules.h index a18d1dffc..11e9b106c 100644 --- a/include/commands/cmd_modules.h +++ b/include/commands/cmd_modules.h @@ -36,7 +36,7 @@ class CommandModules : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_motd.h b/include/commands/cmd_motd.h index fb6a8da5a..42e334398 100644 --- a/include/commands/cmd_motd.h +++ b/include/commands/cmd_motd.h @@ -39,7 +39,7 @@ class CommandMotd : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_names.h b/include/commands/cmd_names.h index 5c81d4796..477f86afc 100644 --- a/include/commands/cmd_names.h +++ b/include/commands/cmd_names.h @@ -36,7 +36,7 @@ class CommandNames : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_nick.h b/include/commands/cmd_nick.h index 70e074251..7cab63c09 100644 --- a/include/commands/cmd_nick.h +++ b/include/commands/cmd_nick.h @@ -37,7 +37,7 @@ class CommandNick : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); /** Handle internal command * @param id Used to indicate if invalid nick changes are allowed. diff --git a/include/commands/cmd_notice.h b/include/commands/cmd_notice.h index 59d3b0260..e565bab0b 100644 --- a/include/commands/cmd_notice.h +++ b/include/commands/cmd_notice.h @@ -36,7 +36,7 @@ class CommandNotice : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_oper.h b/include/commands/cmd_oper.h index 5a48f3d8f..80d7c8b37 100644 --- a/include/commands/cmd_oper.h +++ b/include/commands/cmd_oper.h @@ -38,7 +38,7 @@ class CommandOper : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_part.h b/include/commands/cmd_part.h index 330cc0405..cf6899163 100644 --- a/include/commands/cmd_part.h +++ b/include/commands/cmd_part.h @@ -36,7 +36,7 @@ class CommandPart : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_pass.h b/include/commands/cmd_pass.h index b156a9528..85279090c 100644 --- a/include/commands/cmd_pass.h +++ b/include/commands/cmd_pass.h @@ -39,7 +39,7 @@ class CommandPass : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_ping.h b/include/commands/cmd_ping.h index f1dc42fc2..6db0346b0 100644 --- a/include/commands/cmd_ping.h +++ b/include/commands/cmd_ping.h @@ -36,7 +36,7 @@ class CommandPing : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_pong.h b/include/commands/cmd_pong.h index b96f12dcb..6b065fb21 100644 --- a/include/commands/cmd_pong.h +++ b/include/commands/cmd_pong.h @@ -37,7 +37,7 @@ class CommandPong : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_privmsg.h b/include/commands/cmd_privmsg.h index 8559fd93f..eb8e43729 100644 --- a/include/commands/cmd_privmsg.h +++ b/include/commands/cmd_privmsg.h @@ -36,7 +36,7 @@ class CommandPrivmsg : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_qline.h b/include/commands/cmd_qline.h index d3c0ae85e..b6e58a4a8 100644 --- a/include/commands/cmd_qline.h +++ b/include/commands/cmd_qline.h @@ -36,7 +36,7 @@ class CommandQline : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_quit.h b/include/commands/cmd_quit.h index 113cabe61..b6ea0e9b0 100644 --- a/include/commands/cmd_quit.h +++ b/include/commands/cmd_quit.h @@ -36,7 +36,7 @@ class CommandQuit : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_rehash.h b/include/commands/cmd_rehash.h index 3d538ea32..92282fe8a 100644 --- a/include/commands/cmd_rehash.h +++ b/include/commands/cmd_rehash.h @@ -36,7 +36,7 @@ class CommandRehash : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_reloadmodule.h b/include/commands/cmd_reloadmodule.h index f35caf0f2..16976351e 100644 --- a/include/commands/cmd_reloadmodule.h +++ b/include/commands/cmd_reloadmodule.h @@ -36,7 +36,7 @@ class CommandReloadmodule : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_restart.h b/include/commands/cmd_restart.h index ddb14cbbc..5c3c5d733 100644 --- a/include/commands/cmd_restart.h +++ b/include/commands/cmd_restart.h @@ -39,7 +39,7 @@ class CommandRestart : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_rules.h b/include/commands/cmd_rules.h index 950cb5623..369c39800 100644 --- a/include/commands/cmd_rules.h +++ b/include/commands/cmd_rules.h @@ -39,7 +39,7 @@ class CommandRules : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_server.h b/include/commands/cmd_server.h index 4ee7e307d..6853de674 100644 --- a/include/commands/cmd_server.h +++ b/include/commands/cmd_server.h @@ -36,7 +36,7 @@ class CommandServer : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_squit.h b/include/commands/cmd_squit.h index 9b1a19bf2..0201ab59c 100644 --- a/include/commands/cmd_squit.h +++ b/include/commands/cmd_squit.h @@ -39,7 +39,7 @@ class CommandSquit : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_stats.h b/include/commands/cmd_stats.h index 522e74cee..b7d02f3a3 100644 --- a/include/commands/cmd_stats.h +++ b/include/commands/cmd_stats.h @@ -39,7 +39,7 @@ class CommandStats : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_time.h b/include/commands/cmd_time.h index 81016078e..dd86e7890 100644 --- a/include/commands/cmd_time.h +++ b/include/commands/cmd_time.h @@ -36,7 +36,7 @@ class CommandTime : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_topic.h b/include/commands/cmd_topic.h index 66540af89..444e61cfc 100644 --- a/include/commands/cmd_topic.h +++ b/include/commands/cmd_topic.h @@ -36,7 +36,7 @@ class CommandTopic : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_trace.h b/include/commands/cmd_trace.h index 3c476d1a7..ad91f7a37 100644 --- a/include/commands/cmd_trace.h +++ b/include/commands/cmd_trace.h @@ -36,7 +36,7 @@ class CommandTrace : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_unloadmodule.h b/include/commands/cmd_unloadmodule.h index bffbe3f24..3fdc70bfd 100644 --- a/include/commands/cmd_unloadmodule.h +++ b/include/commands/cmd_unloadmodule.h @@ -36,7 +36,7 @@ class CommandUnloadmodule : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_user.h b/include/commands/cmd_user.h index fff67ac82..f0eec34cb 100644 --- a/include/commands/cmd_user.h +++ b/include/commands/cmd_user.h @@ -36,7 +36,7 @@ class CommandUser : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_userhost.h b/include/commands/cmd_userhost.h index dd3afc37c..fa26ae1ed 100644 --- a/include/commands/cmd_userhost.h +++ b/include/commands/cmd_userhost.h @@ -36,7 +36,7 @@ class CommandUserhost : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_version.h b/include/commands/cmd_version.h index 0fc95dd06..01e475dfc 100644 --- a/include/commands/cmd_version.h +++ b/include/commands/cmd_version.h @@ -36,7 +36,7 @@ class CommandVersion : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_wallops.h b/include/commands/cmd_wallops.h index 84e8234c5..3a87ce608 100644 --- a/include/commands/cmd_wallops.h +++ b/include/commands/cmd_wallops.h @@ -36,7 +36,7 @@ class CommandWallops : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_who.h b/include/commands/cmd_who.h index 78a994eec..87ea44449 100644 --- a/include/commands/cmd_who.h +++ b/include/commands/cmd_who.h @@ -49,7 +49,7 @@ class CommandWho : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); bool whomatch(User* user, const char* matchtext); }; diff --git a/include/commands/cmd_whois.h b/include/commands/cmd_whois.h index 316a7695c..bee2f760f 100644 --- a/include/commands/cmd_whois.h +++ b/include/commands/cmd_whois.h @@ -39,7 +39,7 @@ class CommandWhois : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif diff --git a/include/commands/cmd_whowas.h b/include/commands/cmd_whowas.h index 51ec38b17..1b75987df 100644 --- a/include/commands/cmd_whowas.h +++ b/include/commands/cmd_whowas.h @@ -79,7 +79,7 @@ class CommandWhowas : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); /** Handle an internal request from another command, the core, or a module * @param Command ID * @param Zero or more parameters, whos form is specified by the command ID. diff --git a/include/commands/cmd_zline.h b/include/commands/cmd_zline.h index b6a3a037a..6b1ca9e0a 100644 --- a/include/commands/cmd_zline.h +++ b/include/commands/cmd_zline.h @@ -36,7 +36,7 @@ class CommandZline : public Command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const char** parameters, int pcnt, User *user); + CmdResult Handle(const char* const* parameters, int pcnt, User *user); }; #endif -- cgit v1.2.3