From 043ce88123ea9e9584665dedd5025cb49c53908d Mon Sep 17 00:00:00 2001 From: dondelelcaro Date: Sat, 3 Jun 2006 01:13:00 +0000 Subject: [PATCH 1/1] * 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 --- src/Modules/News.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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*//) { -- 2.39.2