summaryrefslogtreecommitdiff
path: root/src/core/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/commands.c')
-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;