diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-28 20:44:20 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-28 20:44:20 +0000 |
commit | 66ce3149898c5987e4b52354ea8ec8b3a9c0ba11 (patch) | |
tree | 215d97c6a5bc9ae13d748374ea5ee176a5711449 /src/command_parse.cpp | |
parent | 6d06ed1a9e25683755b215ed1c89fde2fadbd797 (diff) |
Finish off /WHO (i think it covers everything). Now has a few extra options
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4581 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r-- | src/command_parse.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 10fe6e1ee..386f09321 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -236,11 +236,11 @@ void CommandParser::ProcessCommand(userrec *user, std::string &cmd) WriteServ(user->fd,"481 %s :Permission Denied- You do not have the required operator privilages",user->nick); return; } - } - if ((cm->second->flags_needed) && (!user->HasPermission(command))) - { - WriteServ(user->fd,"481 %s :Permission Denied- Oper type %s does not have access to command %s",user->nick,user->oper,command.c_str()); - return; + if (!user->HasPermission(command)) + { + WriteServ(user->fd,"481 %s :Permission Denied- Oper type %s does not have access to command %s",user->nick,user->oper,command.c_str()); + return; + } } if ((user->registered == REG_ALL) && (!*user->oper) && (cm->second->IsDisabled())) { |