summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-15 21:19:18 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-15 21:19:18 +0000
commit289340ebf82bc4f00ac2f47084feea5050021b80 (patch)
treed8cfff82f7911e119771e39ccc36254936869068 /src/mode.cpp
parentbac6b35d70223e230f4a7f38663aed17be3ebdc2 (diff)
Make this use true and false, not MODEACTION_DENY
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6349 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index db409f2e3..213bcd820 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -316,7 +316,7 @@ void ModeParser::Process(const char** parameters, int pcnt, userrec *user, bool
{
std::string dummyparam;
- if((*watchers)->BeforeMode(user, NULL, targetchannel, dummyparam, true, MODETYPE_CHANNEL) == MODEACTION_DENY)
+ if (!((*watchers)->BeforeMode(user, NULL, targetchannel, dummyparam, true, MODETYPE_CHANNEL)))
display = false;
}
@@ -475,7 +475,7 @@ void ModeParser::Process(const char** parameters, int pcnt, userrec *user, bool
for (ModeWatchIter watchers = modewatchers[handler_id].begin(); watchers != modewatchers[handler_id].end(); watchers++)
{
- if ((*watchers)->BeforeMode(user, targetuser, targetchannel, parameter, adding, type) == MODEACTION_DENY)
+ if ((*watchers)->BeforeMode(user, targetuser, targetchannel, parameter, adding, type) == false)
{
abort = true;
break;