From: dms Date: Sun, 6 May 2001 14:07:46 +0000 (+0000) Subject: - added "news newsflush" for manual intervention. X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=59b0e3d07dd301378ca8014330b1839d7c36edf4;p=infobot.git - added "news newsflush" for manual intervention. git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@476 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Modules/News.pl b/src/Modules/News.pl index f3d12e7..6c2696a 100644 --- a/src/Modules/News.pl +++ b/src/Modules/News.pl @@ -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);