1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 10:43:14 +02:00

Fixed AddAkiller

This commit is contained in:
Adam
2011-08-21 14:09:55 -04:00
parent 4663970722
commit 37c7ca8b87
3 changed files with 7 additions and 5 deletions
+3
View File
@@ -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;
+3
View File
@@ -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;
+1 -5
View File
@@ -22,11 +22,7 @@ class SGLineManager : public XLineManager
XLine *Add(const Anope::string &mask, const Anope::string &creator, time_t expires, const Anope::string &reason)
{
Anope::string realreason = reason;
if (!creator.empty() && Config->AddAkiller)
realreason = "[" + creator + "] " + reason;
XLine *x = new XLine(mask, creator, expires, realreason);
XLine *x = new XLine(mask, creator, expires, reason);
this->AddXLine(x);