summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-06-07 15:32:17 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-06-07 15:32:17 +0000
commit80cc61b63f7ebd51dacf3d13b0dbd6205b5625e4 (patch)
treedc55dfdee2a3a27dc9d0021d46c086b045ce8641 /src/core
parentda1252cf2c3cdc8adf6827197346996754ceb50b (diff)
downloadirssi-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.c9
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;