1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Previous commit in core/commands.c broke /^cmd (command output hiding).

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2116 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-11-20 02:08:37 +00:00 committed by cras
parent 8279d9c5c2
commit 26128a3de2

View File

@ -192,6 +192,12 @@ static void event_command(const char *data)
{
const char *cmdchar;
if (*data == '\0') {
/* empty line, forget it. */
signal_stop();
return;
}
/* save current command line */
current_cmdline = data;
@ -318,7 +324,7 @@ void fe_core_commands_init(void)
command_bind_first("nick", NULL, (SIGNAL_FUNC) cmd_nick);
command_bind_first("join", NULL, (SIGNAL_FUNC) cmd_join);
signal_add("send command", (SIGNAL_FUNC) event_command);
signal_add_first("send command", (SIGNAL_FUNC) event_command);
signal_add_last("send command", (SIGNAL_FUNC) event_command_last);
signal_add("default command", (SIGNAL_FUNC) event_default_command);
signal_add("error command", (SIGNAL_FUNC) event_cmderror);