From 37c7ca8b87a3a94c7d541f88eec8e234b8d8ec4a Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 21 Aug 2011 14:09:55 -0400 Subject: Fixed AddAkiller --- modules/commands/os_akill.cpp | 3 +++ modules/commands/os_sxline.cpp | 3 +++ 2 files changed, 6 insertions(+) (limited to 'modules/commands') diff --git a/modules/commands/os_akill.cpp b/modules/commands/os_akill.cpp index ab35fee1e..296819ca7 100644 --- a/modules/commands/os_akill.cpp +++ b/modules/commands/os_akill.cpp @@ -205,6 +205,9 @@ class CommandOSAKill : public Command return; } + if (Config->AddAkiller) + reason = "[" + u->nick + "] " + reason; + XLine *x = akills->Add(mask, u->nick, expires, reason); EventReturn MOD_RESULT; diff --git a/modules/commands/os_sxline.cpp b/modules/commands/os_sxline.cpp index f949cb7d2..2f0438992 100644 --- a/modules/commands/os_sxline.cpp +++ b/modules/commands/os_sxline.cpp @@ -404,6 +404,9 @@ class CommandOSSNLine : public CommandOSSXLineBase return; } + if (Config->AddAkiller) + reason = "[" + u->nick + "] " + reason; + XLine *x = this->xlm()->Add(mask, u->nick, expires, reason); EventReturn MOD_RESULT; -- cgit