From 42a9d133e04b847bec399a3adb2c39599b72d46d 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@788 c11ca15a-4712-0410-83d8-924469b57eb5 --- blootbot/src/Modules/News.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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"); -- 2.39.5