diff options
author | Patrick Griffis <tingping@tingping.se> | 2017-07-04 13:53:15 -0400 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2017-07-04 13:53:15 -0400 |
commit | ad359d7a04065728e8200d9e7aeef4e6e1453dba (patch) | |
tree | e0f03dc6fc3757239ef7bae3bac19fa20634fcda /src/common | |
parent | 2965fbcc87c895163f683651946f96b75d7211f3 (diff) |
Better handle channels with / in them with doat command
/doat #foo/bar/freenode would work for example.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/outbound.c | 2 |
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++; |