summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@anope.org>2012-10-02 04:14:50 +0200
committerDukePyrolator <DukePyrolator@anope.org>2012-10-02 04:14:50 +0200
commitaec6cac8caa645d4e6a9fed42ca1d7e2f3c5057a (patch)
tree35e1a16fdca66ea99dbac3bf334dc30f766cd603 /src
parentffca6a762dc0ad8d0ffb90eab163cf63d809cd68 (diff)
parent2d2ab4fec463fc86c552ec79e6ee6ff4b0421341 (diff)
Merge branch '1.9' of ssh://anope.git.sourceforge.net/gitroot/anope/anope into 1.9
Diffstat (limited to 'src')
-rw-r--r--src/channels.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 1790ddda1..c95e46373 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -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;