diff options
| author | 2007-01-15 21:19:18 +0000 | |
|---|---|---|
| committer | 2007-01-15 21:19:18 +0000 | |
| commit | 289340ebf82bc4f00ac2f47084feea5050021b80 (patch) | |
| tree | d8cfff82f7911e119771e39ccc36254936869068 /src/mode.cpp | |
| parent | Convert all redirecting bans to non-redirecting ones when the module unloads. (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.cpp | 4 |
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; |
