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=42a9d133e04b847bec399a3adb2c39599b72d46d;p=infobot.git - proper behaviour now. ugly code. git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@788 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/Modules/News.pl b/blootbot/src/Modules/News.pl index 930175a..948767f 100644 --- a/blootbot/src/Modules/News.pl +++ b/blootbot/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");