diff options
author | Adam <Adam@anope.org> | 2017-02-21 14:44:33 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-02-21 14:44:33 -0500 |
commit | 60339edf401561d2076b257141d54429be885b9b (patch) | |
tree | f8a02390dd78c8b084ab6ec40fe82a3867bc340b /modules/commands/cs_set.cpp | |
parent | 6990c692d694aaebb20c958be71d895fdd3d552a (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.cpp | 2 |
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; |