]> git.donarmstrong.com Git - infobot.git/commitdiff
allow it if the topic is not locked
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 30 Sep 2004 16:55:57 +0000 (16:55 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 30 Sep 2004 16:55:57 +0000 (16:55 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1028 c11ca15a-4712-0410-83d8-924469b57eb5

src/Modules/Topic.pl

index 58653f5bbe27e54a370e05db02252048dfa273c8..4e8f3d7c4f965a500a526e6425e97a67366c1a0e 100644 (file)
@@ -164,7 +164,7 @@ sub do_add {
        return;
     }
 
-    return unless (&hasFlag("T"));
+    return if ($channels{$chan}{t} and !&hasFlag("T"));
 
     my @prev = &topicDecipher($chan);
     my $new  = "$args ($orig{who})";