1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 09:33:12 +02:00

Fix ChannelMode::CanSet

This commit is contained in:
Adam
2013-05-10 11:22:53 -04:00
parent 4d62c673fa
commit 9384a4f088
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -344,7 +344,7 @@ class ChanServCore : public Module
EventReturn OnCanSet(User *u, const ChannelMode *cm) anope_override
{
if (Config->GetModule(this)->Get<const Anope::string>("nomlock").find(cm->mchar) != Anope::string::npos
|| Config->GetModule(this)->Get<const Anope::string>("require", "r").find(cm->mchar) || Anope::string::npos)
|| Config->GetModule(this)->Get<const Anope::string>("require", "r").find(cm->mchar) != Anope::string::npos)
return EVENT_STOP;
return EVENT_CONTINUE;
}
+1 -1
View File
@@ -120,7 +120,7 @@ bool ChannelMode::CanSet(User *u) const
{
EventReturn MOD_RESULT;
FOREACH_RESULT(I_OnCanSet, OnCanSet(u, this));
return MOD_RESULT == EVENT_ALLOW;
return MOD_RESULT != EVENT_STOP;
}
ChannelModeList::ChannelModeList(const Anope::string &cm, char mch) : ChannelMode(cm, mch)