summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-05-25 12:58:14 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-05-25 12:58:14 +0000
commit6e2f0ec988d80bfa8d454f53c78c809b7ccc03f2 (patch)
tree4ff7ad3769996924ba49f7a2c558d5de9831434b /src/fe-common
parent96020e699926d292d27dc6fd986e8bb688cbe31e (diff)
downloadirssi-6e2f0ec988d80bfa8d454f53c78c809b7ccc03f2.zip
"/ text" sends "text" to active channel.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@233 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-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);