]> jfr.im git - irc/SurrealServices/srsv.git/commitdiff
ignore topic changes for unregistered channels
authortabris <redacted>
Sun, 15 Jan 2012 17:13:12 +0000 (17:13 +0000)
committertabris <redacted>
Sun, 15 Jan 2012 17:13:12 +0000 (17:13 +0000)
git-svn-id: http://svn.tabris.net/repos/srsv@3578 70d4eda1-72e9-0310-a436-91e5bd24443c

branches/0.4.3/modules/serviceslibs/chanserv.pm

index 7b80b78e4d14dd5c9385f018585f2cba98b379ab..fc8d283e1bacf9c82b14c9f4b8efed2223c7f8b5 100644 (file)
@@ -5102,9 +5102,9 @@ sub chan_topic {
        my $chan = { CHAN => $cn };
        my $suser = { NICK => $setter, AGENT => agent($chan) };
 
-       
+       return unless is_registered($chan);
        return if cr_chk_flag($chan, CRF_CLOSE, 1);
-       
+
        if(current_message->{SYNC}) {  # We don't need to undo our own topic changes.
                $set_topic1->execute($setter, $time, $cn);
                $set_topic2->execute($cn, $topic);