summaryrefslogtreecommitdiff
path: root/modules/commands/cs_set.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-02-21 14:44:33 -0500
committerAdam <Adam@anope.org>2017-02-21 14:44:33 -0500
commit60339edf401561d2076b257141d54429be885b9b (patch)
treef8a02390dd78c8b084ab6ec40fe82a3867bc340b /modules/commands/cs_set.cpp
parent6990c692d694aaebb20c958be71d895fdd3d552a (diff)
cs_set: don't lower ts from own clients joining
Diffstat (limited to 'modules/commands/cs_set.cpp')
-rw-r--r--modules/commands/cs_set.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/cs_set.cpp b/modules/commands/cs_set.cpp
index c8b7941a6..619222ebb 100644
--- a/modules/commands/cs_set.cpp
+++ b/modules/commands/cs_set.cpp
@@ -1299,7 +1299,7 @@ class CSSet : public Module
void OnJoinChannel(User *u, Channel *c) anope_override
{
- if (persist_lower_ts && c->ci && persist.HasExt(c->ci) && c->creation_time > c->ci->time_registered)
+ if (u->server != Me && persist_lower_ts && c->ci && persist.HasExt(c->ci) && c->creation_time > c->ci->time_registered)
{
Log(LOG_DEBUG) << "Changing TS of " << c->name << " from " << c->creation_time << " to " << c->ci->time_registered;
c->creation_time = c->ci->time_registered;