From f5c9e3648e82cd26c92ece4a73fac7a229e76597 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 19 Nov 2001 17:21:11 +0000 Subject: [PATCH] "message irc notice" - when figuring out if it's server notice or not, check also if address == "" instead of just == NULL. At least if perl script emits the signal it gets "". git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2088 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/irc/fe-irc-messages.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fe-common/irc/fe-irc-messages.c b/src/fe-common/irc/fe-irc-messages.c index 4177203d..92a66460 100644 --- a/src/fe-common/irc/fe-irc-messages.c +++ b/src/fe-common/irc/fe-irc-messages.c @@ -189,8 +189,8 @@ static void sig_message_irc_notice(SERVER_REC *server, const char *msg, const char *target) { const char *oldtarget; - - if (address == NULL) { + + if (address == NULL || *address == '\0') { /* notice from server */ if (!ignore_check(server, nick, "", target, msg, MSGLEVEL_SNOTES)) {