]> git.donarmstrong.com Git - infobot.git/blobdiff - src/logger.pl
- added top3 irctextcounter stats
[infobot.git] / src / logger.pl
index 3e159ae3390cfe8646a38743da7247dea6956e83..2ba41506fcbfc2aba6bd0c0711dda63363d7dc4c 100644 (file)
@@ -222,10 +222,16 @@ sub status {
 
     for ($input) {
        s/\n+$//;
-       s/\n/<NL>/g;
        s/\002|037//g;  # bold,video,underline => remove.
     }
 
+    # does this work?
+    if ($input =~ /\n/) {
+       foreach (split(/\n/, $input)) {
+           &status($_);
+       }
+    }
+
     # pump up the stats.
     $statcount++;