From 2fe387b4f0cb0e9df43c2689a1343a24f07018ca Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 7 Nov 2012 23:23:02 -0500 Subject: Update bi->lastmsg in cs_log when something is logged via privmsg --- modules/commands/cs_log.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/commands/cs_log.cpp') diff --git a/modules/commands/cs_log.cpp b/modules/commands/cs_log.cpp index 0f680e111..bd630b4e2 100644 --- a/modules/commands/cs_log.cpp +++ b/modules/commands/cs_log.cpp @@ -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) -- cgit