From 1372dc19537ce270f1f02979101f9b8678b5ff28 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 12 Feb 2011 16:17:17 -0500 Subject: Removed the Wallop config options and replaced them with the new log system --- modules/core/os_szline.cpp | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) (limited to 'modules/core/os_szline.cpp') diff --git a/modules/core/os_szline.cpp b/modules/core/os_szline.cpp index 23ed98aa6..899ba69b7 100644 --- a/modules/core/os_szline.cpp +++ b/modules/core/os_szline.cpp @@ -192,39 +192,7 @@ class CommandOSSZLine : public Command return MOD_CONT; source.Reply(_("\002%s\002 added to the SZLINE list."), mask.c_str()); - - if (Config->WallOSSZLine) - { - Anope::string buf; - - if (!expires) - buf = "does not expire"; - else - { - time_t wall_expiry = expires - Anope::CurTime; - Anope::string s; - - if (wall_expiry >= 86400) - { - wall_expiry /= 86400; - s = "day"; - } - else if (wall_expiry >= 3600) - { - wall_expiry /= 3600; - s = "hour"; - } - else if (wall_expiry >= 60) - { - wall_expiry /= 60; - s = "minute"; - } - - buf = "expires in " + stringify(wall_expiry) + " " + s + (wall_expiry == 1 ? "" : "s"); - } - - ircdproto->SendGlobops(OperServ, "%s added an SZLINE for %s (%s) [affects %i user(s) (%.2f%%)]", u->nick.c_str(), mask.c_str(), buf.c_str(), affected, percent); - } + Log(LOG_ADMIN, u, this) << "on " << mask << " (" << reason << ") expires in " << duration(NULL, expires - Anope::CurTime) << " [affects " << affected << " user(s) (" << percent << "%)]"; if (readonly) source.Reply(LanguageString::READ_ONLY_MODE); -- cgit