summaryrefslogtreecommitdiff
path: root/src/modules
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/modules
parent40c5b25db4aef95957788c46de1005708ce000d2 (diff)
Remove useless ModeType parameter from ModeWatcher::BeforeMode() and AfterMode()
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_banredirect.cpp4
-rw-r--r--src/modules/m_operprefix.cpp4
-rw-r--r--src/modules/m_timedbans.cpp2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_banredirect.cpp b/src/modules/m_banredirect.cpp
index 332e625e0..8e4c5c6e5 100644
--- a/src/modules/m_banredirect.cpp
+++ b/src/modules/m_banredirect.cpp
@@ -56,7 +56,7 @@ class BanRedirect : public ModeWatcher
{
}
- bool BeforeMode(User* source, User* dest, Channel* channel, std::string &param, bool adding, ModeType type)
+ bool BeforeMode(User* source, User* dest, Channel* channel, std::string &param, bool adding)
{
/* nick!ident@host -> nick!ident@host
* nick!ident@host#chan -> nick!ident@host#chan
@@ -65,7 +65,7 @@ class BanRedirect : public ModeWatcher
* nick#chan -> nick!*@*#chan
*/
- if(channel && (type == MODETYPE_CHANNEL) && param.length())
+ if ((channel) && !param.empty())
{
BanRedirectList* redirects;
diff --git a/src/modules/m_operprefix.cpp b/src/modules/m_operprefix.cpp
index 2360ae2a4..b0737cb9a 100644
--- a/src/modules/m_operprefix.cpp
+++ b/src/modules/m_operprefix.cpp
@@ -66,7 +66,7 @@ class HideOperWatcher : public ModeWatcher
ModuleOperPrefixMode* parentmod;
public:
HideOperWatcher(ModuleOperPrefixMode* parent) : ModeWatcher((Module*) parent, 'H', MODETYPE_USER), parentmod(parent) {}
- void AfterMode(User* source, User* dest, Channel* channel, const std::string &parameter, bool adding, ModeType type);
+ void AfterMode(User* source, User* dest, Channel* channel, const std::string &parameter, bool adding);
};
class ModuleOperPrefixMode : public Module
@@ -159,7 +159,7 @@ class ModuleOperPrefixMode : public Module
}
};
-void HideOperWatcher::AfterMode(User* source, User* dest, Channel* channel, const std::string& parameter, bool adding, ModeType type)
+void HideOperWatcher::AfterMode(User* source, User* dest, Channel* channel, const std::string& parameter, bool adding)
{
if (IS_LOCAL(dest))
parentmod->SetOperPrefix(dest, !adding);
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
index 8a4fbb4dc..90b8fccdd 100644
--- a/src/modules/m_timedbans.cpp
+++ b/src/modules/m_timedbans.cpp
@@ -119,7 +119,7 @@ class BanWatcher : public ModeWatcher
{
}
- void AfterMode(User* source, User* dest, Channel* chan, const std::string& banmask, bool adding, ModeType type)
+ void AfterMode(User* source, User* dest, Channel* chan, const std::string& banmask, bool adding)
{
if (adding)
return;