]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Now sends out warning when oper on a remote server tries to execute a command that...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 24 Feb 2006 18:45:57 +0000 (18:45 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 24 Feb 2006 18:45:57 +0000 (18:45 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3318 e03df62e-2008-0410-955e-edbf42e46eb7

src/command_parse.cpp

index a606e572ce48370e5abd7b204bf7a165e4514e42..18915b8194d9edd5ac0fdc4c9e0ad477277b25a2 100644 (file)
@@ -304,6 +304,11 @@ void CommandParser::CallHandler(std::string &commandname,char **parameters, int
                                        {
                                                n->second->Handle(parameters,pcnt,user);
                                        }
+                                       else
+                                       {
+                                               if (!IS_LOCAL(user))
+                                                       WriteOpers("*** \2WARNING\2: Command '%s' not allowed for oper '%s', dropped.",commandname.c_str(),user->nick);
+                                       }
                                }
                                else
                                {
@@ -582,6 +587,8 @@ void CommandParser::ProcessCommand(userrec *user, char* cmd)
                        {
                                log(DEBUG,"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);
+                               if (!IS_LOCAL(user))
+                                       WriteOpers("*** \2WARNING\2: Command '%s' not allowed for oper '%s', dropped.",command,user->nick);
                                cmd_found = 1;
                                return;
                        }