summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-06-03 18:10:02 +0200
committerAttila Molnar <attilamolnar@hush.com>2015-06-03 18:10:02 +0200
commitdad0eff8841f2693db7b0406a08b26755def52ab (patch)
treeb874ae1a028a3205ee0cf8ebfd808e3cc50d32c1
parent0d4facc30a36a69a40a0168b2c0eb978b6494ad4 (diff)
m_silence Remove unused parameters from OnBuildExemptList and rename it
-rw-r--r--src/modules/m_silence.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp
index 502f947f4..b5c07c48d 100644
--- a/src/modules/m_silence.cpp
+++ b/src/modules/m_silence.cpp
@@ -318,7 +318,7 @@ class ModuleSilence : public Module
tokens["SILENCE"] = ConvToStr(maxsilence);
}
- void OnBuildExemptList(MessageType message_type, Channel* chan, User* sender, char status, CUList &exempt_list, const std::string &text)
+ void BuildExemptList(MessageType message_type, Channel* chan, User* sender, CUList& exempt_list)
{
int public_silence = (message_type == MSG_PRIVMSG ? SILENCE_CHANNEL : SILENCE_CNOTICE);
@@ -344,7 +344,7 @@ class ModuleSilence : public Module
else if (target_type == TYPE_CHANNEL)
{
Channel* chan = (Channel*)dest;
- this->OnBuildExemptList(msgtype, chan, user, status, exempt_list, "");
+ BuildExemptList(msgtype, chan, user, exempt_list);
}
return MOD_RES_PASSTHRU;
}