From: dondelelcaro Date: Sat, 3 Jun 2006 01:13:00 +0000 (+0000) Subject: * Dissallow noticing the channel with news [dpkg specific] X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=043ce88123ea9e9584665dedd5025cb49c53908d;hp=d2831f6af012fb356e8b0f9b00bbb98e16eba940;p=infobot.git * Dissallow noticing the channel with news [dpkg specific] git-svn-id: https://svn.code.sf.net/p/infobot/code/branches/don/dpkg@1279 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Modules/News.pl b/src/Modules/News.pl index 25b049c..d284004 100644 --- a/src/Modules/News.pl +++ b/src/Modules/News.pl @@ -36,7 +36,12 @@ sub Parse { } if ($::msgType ne "private") { - $chan = $::chan; + if ($who =~ /^#/){ + &::msg($who, "I'm not noticing the entire channel. /msg me instead"); + return; + } + &::notice($who, "I'm not noticing the entire channel. /msg me instead"); + return; } if (defined $what and $what =~ s/^($::mask{chan})\s*//) {