mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
added "alias added" and "alias removed" signals.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2779 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
4a93232462
commit
a74c8e4d55
@ -209,6 +209,8 @@ static void alias_remove(const char *alias)
|
||||
else {
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, TXT_ALIAS_REMOVED, alias);
|
||||
iconfig_set_str("aliases", alias, NULL);
|
||||
|
||||
signal_emit("aliases removed", 1, alias);
|
||||
}
|
||||
}
|
||||
|
||||
@ -230,6 +232,7 @@ static void cmd_alias(const char *data)
|
||||
else {
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, TXT_ALIAS_ADDED, alias);
|
||||
iconfig_set_str("aliases", alias, value);
|
||||
signal_emit("aliases added", 2, alias, value);
|
||||
}
|
||||
cmd_params_free(free_arg);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user