summaryrefslogtreecommitdiff
path: root/src/fe-common/irc/completion.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-common/irc/completion.c')
-rw-r--r--src/fe-common/irc/completion.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/fe-common/irc/completion.c b/src/fe-common/irc/completion.c
index 444a3a06..b710dd67 100644
--- a/src/fe-common/irc/completion.c
+++ b/src/fe-common/irc/completion.c
@@ -305,8 +305,13 @@ static void event_command(gchar *line, IRC_SERVER_REC *server, WI_IRC_REC *item)
if (!irc_item_check(item))
return;
- if (strchr(settings_get_str("cmdchars"), *line) != NULL)
- return;
+ if (strchr(settings_get_str("cmdchars"), *line) != NULL) {
+ if (line[1] != ' ')
+ return;
+
+ /* "/ text" = same as sending "text" to active channel. */
+ line += 2;
+ }
line = g_strdup(line);