summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 4ff6edc31..f3798b364 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -335,10 +335,16 @@ void handle_kill(char **parameters, int pcnt, userrec *user)
{
userrec *u = Find(parameters[0]);
char killreason[MAXBUF];
-
+
log(DEBUG,"kill: %s %s",parameters[0],parameters[1]);
if (u)
{
+ int MOD_RESULT = 0;
+ FOREACH_RESULT(OnKill(user,u,parameters[1]));
+ if (MOD_RESULT) {
+ return;
+ }
+
if (strcmp(ServerName,u->server))
{
// remote kill