]> git.donarmstrong.com Git - infobot.git/commitdiff
- proper behaviour now. ugly code.
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 21 May 2003 15:28:38 +0000 (15:28 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 21 May 2003 15:28:38 +0000 (15:28 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@788 c11ca15a-4712-0410-83d8-924469b57eb5

src/Modules/News.pl

index 930175aa736bc9b5ea261db1181fcfa4ae93c97d..948767f24831c17fa9f27b04740e4ba0172f3225 100644 (file)
@@ -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");