parent
87da44e583
commit
f19e1f6209
@ -533,13 +533,7 @@ static void do_log_privmsg(log_t *logdata, const char *storage, int src,
|
|||||||
void log_privmsg(log_t *logdata, const char *ircmask, const char *destination,
|
void log_privmsg(log_t *logdata, const char *ircmask, const char *destination,
|
||||||
const char *message)
|
const char *message)
|
||||||
{
|
{
|
||||||
if (!ischannel(*destination)) {
|
do_log_privmsg(logdata, destination, 0, ircmask, message);
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void log_cli_privmsg(log_t *logdata, const char *ircmask,
|
void log_cli_privmsg(log_t *logdata, const char *ircmask,
|
||||||
|
Loading…
Reference in New Issue
Block a user