]> jfr.im git - irc/hexchat/hexchat.git/commitdiff
Better handle channels with / in them with doat command
authorPatrick Griffis <redacted>
Tue, 4 Jul 2017 17:53:15 +0000 (13:53 -0400)
committerPatrick Griffis <redacted>
Tue, 4 Jul 2017 17:53:15 +0000 (13:53 -0400)
/doat #foo/bar/freenode would work for example.

src/common/outbound.c

index 20071db305ea23a9b44eb00c2b674bae530dcefe..22fe0482d4a90ae094563123876f62a690bc9232 100644 (file)
@@ -1464,7 +1464,7 @@ cmd_doat (struct session *sess, char *tbuf, char *word[], char *word_eol[])
                session *ctx;
 
                /* Split channel and network, either may be empty */
-               if ((serv = strchr (chan, '/')))
+               if ((serv = strrchr (chan, '/')))
                {
                        *serv = '\0';
                        serv++;