]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/channels.cpp
Fix some more incorrect socket use
[user/henk/code/inspircd.git] / src / channels.cpp
index d0533aee68d20848223a0b6695b88353828eb3fb..5603ef1ddf2f16171b692663f1e845ea2d1081d9 100644 (file)
@@ -92,9 +92,8 @@ int Channel::SetTopic(User *u, std::string &ntopic, bool forceset)
                        return CMD_FAILURE;
                if (res != MOD_RES_ALLOW)
                {
-                       FIRST_MOD_RESULT(OnChannelRestrictionApply, res, (u,this,"topiclock"));
                        bool defok = IsModeSet('t') ? GetPrefixValue(u) >= HALFOP_VALUE : HasUser(u);
-                       if (!res.check(defok))
+                       if (!ServerInstance->OnCheckExemption(u,this,"topiclock").check(defok))
                        {
                                if (!this->HasUser(u))
                                        u->WriteNumeric(442, "%s %s :You're not on that channel!",u->nick.c_str(), this->name.c_str());