summaryrefslogtreecommitdiff
path: root/src/modules/m_chanhistory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_chanhistory.cpp')
-rw-r--r--src/modules/m_chanhistory.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/modules/m_chanhistory.cpp b/src/modules/m_chanhistory.cpp
index 0c3945346..57db002a8 100644
--- a/src/modules/m_chanhistory.cpp
+++ b/src/modules/m_chanhistory.cpp
@@ -18,6 +18,7 @@
#include "inspircd.h"
+#include "modules/ircv3_servertime.h"
struct HistoryItem
{
@@ -122,8 +123,13 @@ class ModuleChanHistory : public Module
bool sendnotice;
UserModeReference botmode;
bool dobots;
+ IRCv3::ServerTime::API servertimemanager;
+
public:
- ModuleChanHistory() : m(this), botmode(this, "bot")
+ ModuleChanHistory()
+ : m(this)
+ , botmode(this, "bot")
+ , servertimemanager(this)
{
}
@@ -180,6 +186,8 @@ class ModuleChanHistory : public Module
if (item.ts >= mintime)
{
ClientProtocol::Messages::Privmsg msg(ClientProtocol::Messages::Privmsg::nocopy, item.sourcemask, memb->chan, item.text);
+ if (servertimemanager)
+ servertimemanager->Set(msg, item.ts);
localuser->Send(ServerInstance->GetRFCEvents().privmsg, msg);
}
}