aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_chanhistory.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-03-08 19:37:50 +0000
committerGravatar Sadie Powell2024-03-08 21:17:28 +0000
commitb606326ea9ad7174eba49dbf3585d1746e9a0504 (patch)
treee839ef28b6826e0f81b36721706d1d2994d70d01 /src/modules/m_chanhistory.cpp
parentCall OnRouteMessage on all servers not just directly connected ones. (diff)
Don't send chat history to services servers.
Diffstat (limited to 'src/modules/m_chanhistory.cpp')
-rw-r--r--src/modules/m_chanhistory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_chanhistory.cpp b/src/modules/m_chanhistory.cpp
index 6e0aeba15..9017f2060 100644
--- a/src/modules/m_chanhistory.cpp
+++ b/src/modules/m_chanhistory.cpp
@@ -237,7 +237,7 @@ public:
ModResult OnRouteMessage(const Channel* channel, const Server* server) override
{
- return channel->IsModeSet(historymode) ? MOD_RES_ALLOW : MOD_RES_PASSTHRU;
+ return channel->IsModeSet(historymode) && !server->IsService() ? MOD_RES_ALLOW : MOD_RES_PASSTHRU;
}
void OnUserPostMessage(User* user, const MessageTarget& target, const MessageDetails& details) override