From 289340ebf82bc4f00ac2f47084feea5050021b80 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 15 Jan 2007 21:19:18 +0000 Subject: 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 --- src/mode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3