summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-10-02 22:16:35 -0400
committerAdam <Adam@anope.org>2012-10-02 22:16:35 -0400
commit87478187af9f6f670ebf679ce7cc6cc29b21f7af (patch)
tree52568515b06b380ee57813b904b98ca04ebdaeab /src/channels.cpp
parent7042223f2eb486e8d1aec9fd176d416096a6e927 (diff)
Fix topiclock on inspircd
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index c95e46373..78709ed59 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -910,12 +910,12 @@ void Channel::ChangeTopic(const Anope::string &user, const Anope::string &newtop
{
User *u = finduser(user);
+ ircdproto->SendTopic(this->ci->WhoSends(), this, newtopic, u ? u->nick : user, ts);
+
this->topic = newtopic;
this->topic_setter = u ? u->nick : user;
this->topic_time = ts;
- ircdproto->SendTopic(this->ci->WhoSends(), this);
-
FOREACH_MOD(I_OnTopicUpdated, OnTopicUpdated(this, user, this->topic));
if (this->ci)