1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 21:23:13 +02:00

cs_set: don't lower ts from own clients joining

This commit is contained in:
Adam
2017-02-21 14:44:33 -05:00
parent 6990c692d6
commit 60339edf40
+1 -1
View File
@@ -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;