From: dms Date: Wed, 21 May 2003 15:28:38 +0000 (+0000) Subject: - proper behaviour now. ugly code. X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=dbacd83ef1303380558bb538c5ea766193139721;p=infobot.git - proper behaviour now. ugly code. git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@788 c11ca15a-4712-0410-83d8-924469b57eb5 --- 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");