From ca838821e7c53da0ddaee35d9a401e3a5eaf8c8c Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 26 May 2013 22:35:32 +0200 Subject: Remove useless ModeType parameter from ModeWatcher::BeforeMode() and AfterMode() --- src/mode.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/mode.cpp') diff --git a/src/mode.cpp b/src/mode.cpp index a9ac006ae..1fc2af407 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -175,12 +175,12 @@ ModeType ModeWatcher::GetModeType() return m_type; } -bool ModeWatcher::BeforeMode(User*, User*, Channel*, std::string&, bool, ModeType) +bool ModeWatcher::BeforeMode(User*, User*, Channel*, std::string&, bool) { return true; } -void ModeWatcher::AfterMode(User*, User*, Channel*, const std::string&, bool, ModeType) +void ModeWatcher::AfterMode(User*, User*, Channel*, const std::string&, bool) { } @@ -273,7 +273,7 @@ ModeAction ModeParser::TryMode(User* user, User* targetuser, Channel* chan, bool for (ModeWatchIter watchers = modewatchers[handler_id].begin(); watchers != modewatchers[handler_id].end(); watchers++) { - if ((*watchers)->BeforeMode(user, targetuser, chan, parameter, adding, type) == false) + if ((*watchers)->BeforeMode(user, targetuser, chan, parameter, adding) == false) return MODEACTION_DENY; /* A module whacked the parameter completely, and there was one. abort. */ if (pcnt && parameter.empty()) @@ -332,7 +332,7 @@ ModeAction ModeParser::TryMode(User* user, User* targetuser, Channel* chan, bool return ma; for (ModeWatchIter watchers = modewatchers[handler_id].begin(); watchers != modewatchers[handler_id].end(); watchers++) - (*watchers)->AfterMode(user, targetuser, chan, parameter, adding, type); + (*watchers)->AfterMode(user, targetuser, chan, parameter, adding); return MODEACTION_ALLOW; } @@ -533,7 +533,7 @@ void ModeParser::DisplayListModes(User* user, Channel* chan, std::string &mode_s { std::string dummyparam; - if (!((*watchers)->BeforeMode(user, NULL, chan, dummyparam, true, MODETYPE_CHANNEL))) + if (!((*watchers)->BeforeMode(user, NULL, chan, dummyparam, true))) display = false; } if (display) -- cgit v1.2.3