[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:
parent
5416fc19b2
commit
69640eaf8c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user