summaryrefslogtreecommitdiff
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
parentffca6a762dc0ad8d0ffb90eab163cf63d809cd68 (diff)
parent2d2ab4fec463fc86c552ec79e6ee6ff4b0421341 (diff)
Merge branch '1.9' of ssh://anope.git.sourceforge.net/gitroot/anope/anope into 1.9
-rw-r--r--modules/protocol/unreal.cpp2
-rw-r--r--src/channels.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp
index d3b94b26c..de452e196 100644
--- a/modules/protocol/unreal.cpp
+++ b/modules/protocol/unreal.cpp
@@ -1062,7 +1062,7 @@ struct IRCDMessageSJoin : IRCDMessage
struct IRCDMessageTopic : IRCDMessage
{
- IRCDMessageTopic() : IRCDMessage("TOPIC", 4) { SetFlag(IRCDMESSAGE_REQUIRE_USER); }
+ IRCDMessageTopic() : IRCDMessage("TOPIC", 4) { }
/*
** source = sender prefix
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;