1
0
forked from bip/bip

[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
This commit is contained in:
Arnaud Cornet 2009-01-27 11:24:50 +01:00
parent 5416fc19b2
commit 69640eaf8c

View File

@ -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);
}
} else {
do_log_privmsg(logdata, destination, 0, ircmask, message);
}