diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-13 03:58:45 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-13 03:58:45 +0000 |
commit | 57dce2bd64a74275b5188df66d29f35da012cea1 (patch) | |
tree | 554c7cc8c10f659b1cc77bb4b2356340f9ac928a /src/commands.cpp | |
parent | 9517adab7481acbd258dcba4b235c633760749b2 (diff) |
Fixed /kill bug in m_operlevels (couldnt kill non-opers)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1069 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands.cpp')
-rw-r--r-- | src/commands.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index ca387d4cf..bd2c57983 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -365,9 +365,11 @@ void handle_kill(char **parameters, int pcnt, userrec *user) log(DEBUG,"kill: %s %s",parameters[0],parameters[1]); if (u) { + log(DEBUG,"into kill mechanism"); int MOD_RESULT = 0; FOREACH_RESULT(OnKill(user,u,parameters[1])); if (MOD_RESULT) { + log(DEBUG,"A module prevented the kill with result %d",MOD_RESULT); return; } @@ -396,6 +398,7 @@ void handle_kill(char **parameters, int pcnt, userrec *user) else { // local kill + log(DEFAULT,"LOCAL KILL: %s :%s!%s!%s (%s)", u->nick, ServerName,user->dhost,user->nick,parameters[1]); WriteTo(user, u, "KILL %s :%s!%s!%s (%s)", u->nick, ServerName,user->dhost,user->nick,parameters[1]); WriteOpers("*** Local Kill by %s: %s!%s@%s (%s)",user->nick,u->nick,u->ident,u->host,parameters[1]); snprintf(killreason,MAXBUF,"Killed (%s (%s))",user->nick,parameters[1]); |