- fix error in catching irc notices
authorAndreas Scherbaum <andreas@scherbaum.biz>
Fri, 3 Feb 2012 07:48:38 +0000 (08:48 +0100)
committerAndreas Scherbaum <andreas@scherbaum.biz>
Fri, 3 Feb 2012 07:48:38 +0000 (08:48 +0100)
docbot.pl

index ae8420f59797f6ca6f1b4debbe2eeccbea678851..9ede2f5e1e70d61636804885e8c50359d1d4ca8d 100755 (executable)
--- a/docbot.pl
+++ b/docbot.pl
@@ -2051,7 +2051,7 @@ sub on_irc_notice {
     my $irc = $sender->get_heap();
     my $session = find_irc_session($irc);
 
-    switch ($notice) {
+    switch ($who) {
         case(/^NickServ/) {}
         case(/^ChanServ/) {}
         case(/\.freenode\.net/i) {}