mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
using signal_add() instead of signal_add_first() again. the ..first() wasn't
really needed and it broke autoaway.pl script .. which is because /DISCONNECT and /UPGRADE commands destroy the server record, but it's still left in the signal's parameter. Guess I'll need to add reference counting to server record as well.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2128 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
637a3c76c1
commit
c355002886
@ -935,7 +935,7 @@ void commands_init(void)
|
||||
signal_default_command = signal_get_uniq_id("default command");
|
||||
|
||||
settings_add_str("misc", "cmdchars", "/");
|
||||
signal_add_first("send command", (SIGNAL_FUNC) event_command);
|
||||
signal_add("send command", (SIGNAL_FUNC) event_command);
|
||||
|
||||
command_bind("eval", NULL, (SIGNAL_FUNC) cmd_eval);
|
||||
command_bind("cd", NULL, (SIGNAL_FUNC) cmd_cd);
|
||||
|
@ -324,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_first("send command", (SIGNAL_FUNC) event_command);
|
||||
signal_add("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);
|
||||
|
Loading…
Reference in New Issue
Block a user