From 60339edf401561d2076b257141d54429be885b9b Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 21 Feb 2017 14:44:33 -0500 Subject: cs_set: don't lower ts from own clients joining --- modules/commands/cs_set.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/commands/cs_set.cpp') 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; -- cgit