]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_modules.cpp
Crash fixes from nenolod
[user/henk/code/inspircd.git] / src / commands / cmd_modules.cpp
index 2ba91b86708635376a4e37a1314c5486f0d19ba9..482eb82e4597ee52f70f9013c4b23c03ff15b31c 100644 (file)
@@ -15,7 +15,7 @@
 #include "wildcard.h"
 #include "commands/cmd_modules.h"
 
-char* itab[] = {
+const char* itab[] = {
        "OnUserConnect", "OnUserQuit", "OnUserDisconnect", "OnUserJoin", "OnUserPart", "OnRehash", "OnServerRaw",
        "OnUserPreJoin", "OnUserPreKick", "OnUserKick", "OnOper", "OnInfo", "OnWhois", "OnUserPreInvite",
        "OnUserInvite", "OnUserPreMessage", "OnUserPreNotice", "OnUserPreNick", "OnUserMessage", "OnUserNotice", "OnMode",
@@ -38,7 +38,7 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance)
 
 /** Handle /MODULES
  */
-CmdResult CommandModules::Handle (const char**, int, User *user)
+CmdResult CommandModules::Handle (const char* const*, int, User *user)
 {
        std::vector<std::string> module_names = ServerInstance->Modules->GetAllModuleNames(0);