1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

"/ 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
parent 96020e6999
commit 6e2f0ec988
2 changed files with 11 additions and 2 deletions

View File

@ -387,6 +387,10 @@ static void parse_outgoing(const char *line, SERVER_REC *server, void *item)
if (strchr(cmdchars, *line) == NULL) if (strchr(cmdchars, *line) == NULL)
return; /* handle only /commands here */ return; /* handle only /commands here */
line++; line++;
if (*line == ' ') {
/* "/ text" = same as sending "text" to active channel. */
return;
}
/* //command ignores aliases */ /* //command ignores aliases */
if (strchr(cmdchars, *line) != NULL) { if (strchr(cmdchars, *line) != NULL) {

View File

@ -305,9 +305,14 @@ static void event_command(gchar *line, IRC_SERVER_REC *server, WI_IRC_REC *item)
if (!irc_item_check(item)) if (!irc_item_check(item))
return; return;
if (strchr(settings_get_str("cmdchars"), *line) != NULL) if (strchr(settings_get_str("cmdchars"), *line) != NULL) {
if (line[1] != ' ')
return; return;
/* "/ text" = same as sending "text" to active channel. */
line += 2;
}
line = g_strdup(line); line = g_strdup(line);
/* check for nick completion */ /* check for nick completion */