diff options
| author | 2010-02-20 02:33:32 -0600 | |
|---|---|---|
| committer | 2010-08-03 17:32:36 -0400 | |
| commit | 6e5a489d5c6047ba87a025f39cc7cb40d05815ce (patch) | |
| tree | 0205d27bff2bba125c1c8b946114ec6863e642eb /src/channels.cpp | |
| parent | Extend +w and +X to take named modes in addition to mode letters (diff) | |
Restore <options:exemptchanops> with long names
Diffstat (limited to 'src/channels.cpp')
| -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 1708ec28d..439d609f6 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -90,9 +90,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()); |
