summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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++;