summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2017-07-04 13:53:15 -0400
committerPatrick Griffis <tingping@tingping.se>2017-07-04 13:53:15 -0400
commitad359d7a04065728e8200d9e7aeef4e6e1453dba (patch)
treee0f03dc6fc3757239ef7bae3bac19fa20634fcda
parent2965fbcc87c895163f683651946f96b75d7211f3 (diff)
Better handle channels with / in them with doat command
/doat #foo/bar/freenode would work for example.
-rw-r--r--src/common/outbound.c2
1 files changed, 1 insertions, 1 deletions
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++;