mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 21:00:40 +02:00
Empty lines can be now sent to /EXEC -interactive windows.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2849 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
da1252cf2c
commit
80cc61b63f
5 changed files with 20 additions and 23 deletions
|
|
@ -912,13 +912,8 @@ static void event_command(const char *line, SERVER_REC *server, void *item)
|
|||
|
||||
g_return_if_fail(line != NULL);
|
||||
|
||||
if (*line == '\0') {
|
||||
/* empty line, forget it. */
|
||||
signal_stop();
|
||||
return;
|
||||
}
|
||||
|
||||
cmdchar = strchr(settings_get_str("cmdchars"), *line);
|
||||
cmdchar = *line == '\0' ? NULL :
|
||||
strchr(settings_get_str("cmdchars"), *line);
|
||||
if (cmdchar != NULL && line[1] == ' ') {
|
||||
/* "/ text" = same as sending "text" to active channel. */
|
||||
line += 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue