From dbacd83ef1303380558bb538c5ea766193139721 Mon Sep 17 00:00:00 2001 From: dms Date: Wed, 21 May 2003 15:28:38 +0000 Subject: [PATCH] - proper behaviour now. ugly code. git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@788 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/Modules/News.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Modules/News.pl b/src/Modules/News.pl index 930175a..948767f 100644 --- a/src/Modules/News.pl +++ b/src/Modules/News.pl @@ -752,9 +752,10 @@ sub latest { $::chan = $chan; my $x = &::IsChanConf("newsNotifyAll"); - if (&::IsChanConf("newsNotifyAll") and !defined $t) { - $t = 1; - } + return if (!$x); + + # I don't understand this code ;) + $t = 1 if (!defined $t); if (!defined $t) { # &::msg($who, "News is disabled for $chan"); -- 2.39.2