From a74c8e4d551b555c74a7bd01d9adbf5251df2e54 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 12 May 2002 14:06:08 +0000 Subject: added "alias added" and "alias removed" signals. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2779 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-settings.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/fe-common/core/fe-settings.c b/src/fe-common/core/fe-settings.c index 382a09f7..de01d5f0 100644 --- a/src/fe-common/core/fe-settings.c +++ b/src/fe-common/core/fe-settings.c @@ -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); } -- cgit v1.2.3