summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-05-26 22:35:32 +0200
committerattilamolnar <attilamolnar@hush.com>2013-06-01 23:41:42 +0200
commitca838821e7c53da0ddaee35d9a401e3a5eaf8c8c (patch)
tree01aafc155364f74a95f04472ec9b18d44c820dde /src/mode.cpp
parent40c5b25db4aef95957788c46de1005708ce000d2 (diff)
Remove useless ModeType parameter from ModeWatcher::BeforeMode() and AfterMode()
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp10
1 files changed, 5 insertions, 5 deletions
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)