From: timriker Date: Thu, 30 Sep 2004 16:55:57 +0000 (+0000) Subject: allow it if the topic is not locked X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=a4b102b4ddda719e9417bc04fd863e23eabad400;p=infobot.git allow it if the topic is not locked git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1028 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/Modules/Topic.pl b/blootbot/src/Modules/Topic.pl index 58653f5..4e8f3d7 100644 --- a/blootbot/src/Modules/Topic.pl +++ b/blootbot/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})";