]> git.donarmstrong.com Git - infobot.git/commitdiff
- added "news newsflush" for manual intervention.
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sun, 6 May 2001 14:07:46 +0000 (14:07 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sun, 6 May 2001 14:07:46 +0000 (14:07 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@476 c11ca15a-4712-0410-83d8-924469b57eb5

src/Modules/News.pl

index f3d12e733197a1e2e413947ba036d7ca5af6141e..6c2696a1d1ce9c613cf67a9aa021f2790bd36220 100644 (file)
@@ -102,6 +102,10 @@ sub Parse {
     } elsif ($what =~ /^help(\s+(.*))?$/i) {
        &::help("news$1");
 
+    } elsif ($what =~ /^newsflush$/i) {
+       &::msg($::who, "newsflush called... check out the logs!");
+       &::newsFlush();
+
     } elsif ($what =~ /^(un)?notify$/i) {
        my $state = ($1) ? 0 : 1;
 
@@ -443,7 +447,7 @@ sub read {
        );
     }
 
-    &::notice($::who, "+- News \002$chan\002 #$num: \037$item\037");
+    &::notice($::who, "+- News \002$chan\002 #$num: $item");
     &::notice($::who, "| Added by $a at \037$t\037");
     &::notice($::who, "| Expire: $e") if (defined $e);
     &::notice($::who, $text);