1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 16:46:37 +02:00

Fixed handling TOPIC on unreal, dont set topics in Channel::Reset unless we are synced, and fixed ts checking in Channel::SetModesInternal

This commit is contained in:
Adam
2012-10-01 21:26:41 -04:00
parent a434baed91
commit 2d2ab4fec4
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -96,7 +96,7 @@ void Channel::Reset()
for (CUserList::const_iterator it = this->users.begin(), it_end = this->users.end(); it != it_end; ++it)
chan_set_correct_modes((*it)->user, this, 1, false);
if (this->ci)
if (this->ci && Me && Me->IsSynced())
this->ci->RestoreTopic();
}
@@ -695,9 +695,9 @@ void Channel::SetModesInternal(MessageSource &source, const Anope::string &mode,
++this->server_modecount;
}
if (ts > 0 && ts < this->creation_time)
if (ts > this->creation_time)
return;
else if (ts > this->creation_time)
else if (ts < this->creation_time)
{
Log(LOG_DEBUG) << "Changing TS of " << this->name << " from " << this->creation_time << " to " << ts;
this->creation_time = ts;