summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-11-07 23:23:02 -0500
committerAdam <Adam@anope.org>2012-11-07 23:23:02 -0500
commit2fe387b4f0cb0e9df43c2689a1343a24f07018ca (patch)
tree436abcadb71aca0a07d85b9340b798aa05b6ec19
parent9ec482b7c298e86589a333b856aa5578a3004f6e (diff)
Update bi->lastmsg in cs_log when something is logged via privmsg
-rw-r--r--modules/commands/cs_log.cpp3
1 files changed, 3 insertions, 0 deletions
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)