]> git.donarmstrong.com Git - infobot.git/commitdiff
* Dissallow noticing the channel with news [dpkg specific]
authordondelelcaro <dondelelcaro@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 3 Jun 2006 01:13:00 +0000 (01:13 +0000)
committerdondelelcaro <dondelelcaro@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 3 Jun 2006 01:13:00 +0000 (01:13 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/branches/don/dpkg@1279 c11ca15a-4712-0410-83d8-924469b57eb5

src/Modules/News.pl

index 25b049c28d5fb1f4aa4a4a47d0706700a933a4d1..d28400486252b404537071fc10dbd5a69ca4eaa6 100644 (file)
@@ -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*//) {