summaryrefslogtreecommitdiff
path: root/src/modes.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-05-10 11:22:53 -0400
committerAdam <Adam@anope.org>2013-05-10 16:17:24 -0400
commit9384a4f0880ef3ecbf7718256dd25e50f818b905 (patch)
tree2b47c8a7f8d599dbbaaf8864733beb556ca7df92 /src/modes.cpp
parent4d62c673fac9f166d6a7a53acda1780358110153 (diff)
Fix ChannelMode::CanSet
Diffstat (limited to 'src/modes.cpp')
-rw-r--r--src/modes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modes.cpp b/src/modes.cpp
index 1238df17d..651fbafd9 100644
--- a/src/modes.cpp
+++ b/src/modes.cpp
@@ -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)