diff options
-rw-r--r-- | src/channels.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 2dc668f31..4d32f6719 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -100,10 +100,9 @@ int Channel::SetTopic(User *u, std::string &ntopic, bool forceset) } } } - - this->topic.assign(ntopic, 0, ServerInstance->Config->Limits.MaxTopic); } + this->topic.assign(ntopic, 0, ServerInstance->Config->Limits.MaxTopic); this->setby.assign(ServerInstance->Config->FullHostInTopic ? u->GetFullHost() : u->nick, 0, 128); this->topicset = ServerInstance->Time(); this->WriteChannel(u, "TOPIC %s :%s", this->name.c_str(), this->topic.c_str()); |