1
0
forked from bip/bip

Fix backlog of queries when option 'log' is False

Issue #212
This commit is contained in:
Pierre-Louis Bonicoli 2011-04-12 01:08:41 +02:00
parent 87da44e583
commit f19e1f6209

View File

@ -533,14 +533,8 @@ 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,
const char *message)
{
if (!ischannel(*destination)) {
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,
const char *destination, const char *message)