From c9181cf4ce4c633adb35d426d5eb2c1559e879bb Mon Sep 17 00:00:00 2001 From: Elijah Perrault Date: Mon, 14 Feb 2011 15:08:32 -0700 Subject: [PATCH] Made level 3 work. --- lib/API/Std.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/API/Std.pm b/lib/API/Std.pm index 76780a8..3b0fb75 100644 --- a/lib/API/Std.pm +++ b/lib/API/Std.pm @@ -468,6 +468,10 @@ sub err ## no critic qw(Subroutines::ProhibitBuiltinHomonyms) if ($lvl >= 2) { API::Log::alog("ERROR: $msg"); } + # Level 3: Log to IRC. + if ($lvl >= 3) { + API::Log::slog("ERROR: $msg"); + } # If it's a fatal error, exit the program. if ($fatal) { exit; } @@ -493,6 +497,10 @@ sub awarn if ($lvl >= 2) { API::Log::alog("WARNING: $msg"); } + # Level 3: Log to IRC. + if ($lvl >= 3) { + API::Log::slog("WARNING: $msg"); + } return 1; }