From 20b2f7570ecd766450052f119dde294f738e659d Mon Sep 17 00:00:00 2001
From: timriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Date: Thu, 30 Sep 2004 16:55:57 +0000
Subject: [PATCH] allow it if the topic is not locked

git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1028 c11ca15a-4712-0410-83d8-924469b57eb5
---
 src/Modules/Topic.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Modules/Topic.pl b/src/Modules/Topic.pl
index 58653f5..4e8f3d7 100644
--- a/src/Modules/Topic.pl
+++ b/src/Modules/Topic.pl
@@ -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})";
-- 
2.39.5