f19e1f6 introduces a regression (#252) and bug described in commit
message can not be reproduced.
This commit is contained in:
Pierre-Louis Bonicoli 2012-01-25 04:03:18 +01:00
parent 222a33cb84
commit f1bec50a9c
1 changed files with 7 additions and 1 deletions

View File

@ -533,7 +533,13 @@ 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)
{
do_log_privmsg(logdata, destination, 0, ircmask, 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,