diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-15 14:15:26 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-15 14:15:26 +0000 |
commit | a938e996fe7a6f42d3f5151b41d094930ec3a192 (patch) | |
tree | f098c53809a3150b89aabe4101f7e8b7de8019d2 | |
parent | 818ead2412e2f9a3661f99d165e850ff0f49b092 (diff) |
Fixed old use of userrec::HasPermission
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2477 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/inspircd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 65f8af0fa..b8e15396a 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -761,6 +761,7 @@ void process_command(userrec *user, char* cmd) } } + std::string xcommand = command; for (unsigned int i = 0; i != cmdlist.size(); i++) { if (cmdlist[i].command[0]) @@ -802,7 +803,7 @@ void process_command(userrec *user, char* cmd) cmd_found = 1; return; } - if ((cmdlist[i].flags_needed) && (!user->HasPermission(command))) + if ((cmdlist[i].flags_needed) && (!user->HasPermission(xcommand))) { log(DEBUG,"process_command: permission denied: %s %s",user->nick,command); WriteServ(user->fd,"481 %s :Permission Denied- Oper type %s does not have access to command %s",user->nick,user->oper,command); |