From 127fe6ed1076c294e01925e4fa8ab2bd64c1b0e0 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sat, 16 May 2015 16:40:22 +0200 Subject: Move topic and NAMES sending on join from core into core_channel --- src/channels.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/channels.cpp') diff --git a/src/channels.cpp b/src/channels.cpp index e06e4c6fc..adfb32c3e 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -344,16 +344,6 @@ Membership* Channel::ForceJoin(User* user, const std::string* privs, bool bursti this->WriteAllExcept(user, !ServerInstance->Config->CycleHostsFromUser, 0, except_list, "MODE %s +%s", this->name.c_str(), ms.c_str()); } - if (IS_LOCAL(user)) - { - if (this->topicset) - { - user->WriteNumeric(RPL_TOPIC, "%s :%s", this->name.c_str(), this->topic.c_str()); - user->WriteNumeric(RPL_TOPICTIME, "%s %s %lu", this->name.c_str(), this->setby.c_str(), (unsigned long)this->topicset); - } - this->UserList(user); - } - FOREACH_MOD(OnPostJoin, (memb)); return memb; } -- cgit v1.3.1-10-gc9f91