1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 21:23:13 +02:00

Update bi->lastmsg in cs_log when something is logged via privmsg

This commit is contained in:
Adam
2012-11-07 23:23:02 -05:00
parent 9ec482b7c2
commit 2fe387b4f0
+3
View File
@@ -206,7 +206,10 @@ class CSLog : public Module
Anope::string buffer = l->u->nick + " used " + log->command_name + " " + l->buf.str();
if (log->method.equals_ci("MESSAGE") && l->ci->c && l->ci->bi && l->ci->c->FindUser(l->ci->bi) != NULL)
{
ircdproto->SendPrivmsg(l->ci->bi, log->extra + l->ci->c->name, "%s", buffer.c_str());
l->ci->bi->lastmsg = Anope::CurTime;
}
else if (log->method.equals_ci("NOTICE") && l->ci->c && l->ci->bi && l->ci->c->FindUser(l->ci->bi) != NULL)
ircdproto->SendNotice(l->ci->bi, log->extra + l->ci->c->name, "%s", buffer.c_str());
else if (log->method.equals_ci("MEMO") && memoserv && l->ci->WhoSends() != NULL)