diff options
-rw-r--r-- | src/inspircd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 6bd493a28..64adc0c12 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -1634,7 +1634,7 @@ bool is_valid_cmd(const char* commandname, int pcnt, userrec * user) { if (cmdlist[i].flags_needed) { - if (!user->HasPermission(commandname)) + if (!user->HasPermission((char*)commandname)) { return true; } @@ -1668,7 +1668,7 @@ void call_handler(const char* commandname,char **parameters, int pcnt, userrec * { if (cmdlist[i].flags_needed) { - if (!user->HasPermission(commandname)) + if (!user->HasPermission((char*)commandname)) { cmdlist[i].handler_function(parameters,pcnt,user); } |