Made level 3 work.

This commit is contained in:
Elijah Perrault committed 2011-02-14 15:08:32 -07:00
1 parent a75e3ee771
commit c9181cf4ce
1 file changed
+8
+8
View File
@@ -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;
}