diff options
author | Timo Sirainen <cras@irssi.org> | 2002-06-07 15:32:17 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-06-07 15:32:17 +0000 |
commit | 80cc61b63f7ebd51dacf3d13b0dbd6205b5625e4 (patch) | |
tree | dc55dfdee2a3a27dc9d0021d46c086b045ce8641 /src/core | |
parent | da1252cf2c3cdc8adf6827197346996754ceb50b (diff) | |
download | irssi-80cc61b63f7ebd51dacf3d13b0dbd6205b5625e4.zip |
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
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/commands.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/core/commands.c b/src/core/commands.c index 91e4a170..4e6192ef 100644 --- a/src/core/commands.c +++ b/src/core/commands.c @@ -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; |