Better handle channels with / in them with doat command

/doat #foo/bar/freenode would work for example.
This commit is contained in:
Patrick Griffis 2017-07-04 13:53:15 -04:00
parent 2965fbcc87
commit ad359d7a04

View 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++;