mirror of
https://github.com/anope/anope.git
synced 2026-06-30 01:36:38 +02:00
Fixed akill log message when there is no expiry time
This commit is contained in:
@@ -195,7 +195,7 @@ class CommandOSAKill : public Command
|
||||
|
||||
source.Reply(_("\002%s\002 added to the AKILL list."), mask.c_str());
|
||||
|
||||
Log(LOG_ADMIN, u, this) << "on " << mask << " (" << reason << ") expires in " << duration(expires - Anope::CurTime) << " [affects " << affected << " user(s) (" << percent << "%)]";
|
||||
Log(LOG_ADMIN, u, this) << "on " << mask << " (" << reason << ") expires in " << (expires ? duration(expires - Anope::CurTime) : "never") << " [affects " << affected << " user(s) (" << percent << "%)]";
|
||||
|
||||
if (readonly)
|
||||
source.Reply(_(READ_ONLY_MODE));
|
||||
|
||||
@@ -208,7 +208,7 @@ class CommandOSSNLine : public Command
|
||||
return MOD_CONT;
|
||||
|
||||
source.Reply(_("\002%s\002 added to the SNLINE list."), mask.c_str());
|
||||
Log(LOG_ADMIN, u, this) << "on " << mask << " (" << reason << ") expires in " << duration(expires - Anope::CurTime) << " [affects " << affected << " user(s) (" << percent << "%)]";
|
||||
Log(LOG_ADMIN, u, this) << "on " << mask << " (" << reason << ") expires in " << (expires ? duration(expires - Anope::CurTime) : "never") << " [affects " << affected << " user(s) (" << percent << "%)]";
|
||||
|
||||
if (readonly)
|
||||
source.Reply(_(READ_ONLY_MODE));
|
||||
|
||||
@@ -188,7 +188,7 @@ class CommandOSSQLine : public Command
|
||||
return MOD_CONT;
|
||||
|
||||
source.Reply(_("\002%s\002 added to the SQLINE list."), mask.c_str());
|
||||
Log(LOG_ADMIN, u, this) << "on " << mask << " (" << reason << ") expires in " << duration(expires - Anope::CurTime) << " [affects " << affected << " user(s) (" << percent << "%)]";
|
||||
Log(LOG_ADMIN, u, this) << "on " << mask << " (" << reason << ") expires in " << (expires ? duration(expires - Anope::CurTime) : "never") << " [affects " << affected << " user(s) (" << percent << "%)]";
|
||||
|
||||
if (readonly)
|
||||
source.Reply(_(READ_ONLY_MODE));
|
||||
|
||||
@@ -192,7 +192,7 @@ class CommandOSSZLine : public Command
|
||||
return MOD_CONT;
|
||||
|
||||
source.Reply(_("\002%s\002 added to the SZLINE list."), mask.c_str());
|
||||
Log(LOG_ADMIN, u, this) << "on " << mask << " (" << reason << ") expires in " << duration(expires - Anope::CurTime) << " [affects " << affected << " user(s) (" << percent << "%)]";
|
||||
Log(LOG_ADMIN, u, this) << "on " << mask << " (" << reason << ") expires in " << (expires ? duration(expires - Anope::CurTime) : "never") << " [affects " << affected << " user(s) (" << percent << "%)]";
|
||||
|
||||
if (readonly)
|
||||
source.Reply(_(READ_ONLY_MODE));
|
||||
|
||||
Reference in New Issue
Block a user