mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02: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:
parent
96020e6999
commit
6e2f0ec988
2 changed files with 11 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue