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:
Timo Sirainen 2002-06-07 15:32:17 +00:00 committed by cras
commit 80cc61b63f
5 changed files with 20 additions and 23 deletions

View file

@ -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;