]> jfr.im git - irc/SurrealServices/srsv.git/commitdiff
A little fix for /CS TOPIC sending out the channel name
authormusashix90 <redacted>
Wed, 2 Jun 2010 02:56:59 +0000 (02:56 +0000)
committermusashix90 <redacted>
Wed, 2 Jun 2010 02:56:59 +0000 (02:56 +0000)
within the topic.

git-svn-id: http://svn.tabris.net/repos/srsv@3494 70d4eda1-72e9-0310-a436-91e5bd24443c

branches/0.4.3/modules/serviceslibs/chanserv.pm

index a0c176e6d0e40aaa460c03f7192b3c98ac5d3eb4..da55159ad7d05e8f581f41be72eecf87b215bbb0 100644 (file)
@@ -996,7 +996,7 @@ sub dispatch($$$) {
                if (@args == 0) {
                        notice($user, 'Syntax: TOPIC <#channel> <message|NONE>');
                } else {
-                       $msg =~ s/topic //;
+                       $msg =~ s/^topic #(?:\S+)? //i;
                        cs_topic($user, { CHAN => $chan }, $msg);
                }
        }