From 69640eaf8c49339d71523d01fcb21494db546172 Mon Sep 17 00:00:00 2001 From: Arnaud Cornet Date: Tue, 27 Jan 2009 11:24:50 +0100 Subject: [PATCH] [FIX] Complete previous commit Previous commit was incomplete and did not log some weird messages. They still might be legit, so we come with them --- src/log.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/log.c b/src/log.c index a533a53..1e2da43 100644 --- a/src/log.c +++ b/src/log.c @@ -528,12 +528,12 @@ void log_cli_privmsg(log_t *logdata, const char *ircmask, void log_notice(log_t *logdata, const char *ircmask, const char *destination, const char *message) { + if (!ircmask) + ircmask = P_IRCMASK; if (!ischannel(*destination)) { - if (ircmask) { - char *nick = nick_from_ircmask(ircmask); - do_log_privmsg(logdata, nick, 0, ircmask, message); - free(nick); - } + char *nick = nick_from_ircmask(ircmask); + do_log_privmsg(logdata, nick, 0, ircmask, message); + free(nick); } else { do_log_privmsg(logdata, destination, 0, ircmask, message); }