"/ text" sends "text" to active channel.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@233 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-05-25 12:58:14 +00:00 committed by cras
commit 6e2f0ec988
2 changed files with 11 additions and 2 deletions

View file

@ -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);