From ad359d7a04065728e8200d9e7aeef4e6e1453dba Mon Sep 17 00:00:00 2001 From: Patrick Griffis Date: Tue, 4 Jul 2017 13:53:15 -0400 Subject: Better handle channels with / in them with doat command /doat #foo/bar/freenode would work for example. --- src/common/outbound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/outbound.c b/src/common/outbound.c index 20071db3..22fe0482 100644 --- a/src/common/outbound.c +++ b/src/common/outbound.c @@ -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++; -- cgit 1.4.1