summaryrefslogtreecommitdiff
path: root/src/modules/m_censor.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-26 14:13:13 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-26 14:13:13 +0000
commit6d03943426dcce76ba66567a9b18425a5ebb4c0c (patch)
treebedffa6d2a65a9ef556405224a6d7a181c8a1ba5 /src/modules/m_censor.cpp
parent810c662c9b55908101ca085293c52c3239ef22d1 (diff)
Remove InspIRCd* parameters and fields
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_censor.cpp')
-rw-r--r--src/modules/m_censor.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/m_censor.cpp b/src/modules/m_censor.cpp
index af3baa292..29410962b 100644
--- a/src/modules/m_censor.cpp
+++ b/src/modules/m_censor.cpp
@@ -26,7 +26,7 @@ typedef std::map<irc::string,irc::string> censor_t;
class CensorUser : public SimpleUserModeHandler
{
public:
- CensorUser(InspIRCd* Instance, Module* Creator) : SimpleUserModeHandler(Creator, 'G') { }
+ CensorUser(Module* Creator) : SimpleUserModeHandler(Creator, 'G') { }
};
/** Handles channel mode +G
@@ -34,7 +34,7 @@ class CensorUser : public SimpleUserModeHandler
class CensorChannel : public SimpleChannelModeHandler
{
public:
- CensorChannel(InspIRCd* Instance, Module* Creator) : SimpleChannelModeHandler(Instance, Creator, 'G') { }
+ CensorChannel(Module* Creator) : SimpleChannelModeHandler(Creator, 'G') { }
};
class ModuleCensor : public Module
@@ -44,8 +44,8 @@ class ModuleCensor : public Module
CensorChannel cc;
public:
- ModuleCensor(InspIRCd* Me)
- : Module(Me), cu(Me, this), cc(Me, this)
+ ModuleCensor()
+ : cu(this), cc(this)
{
/* Read the configuration file on startup.
*/
@@ -77,7 +77,7 @@ class ModuleCensor : public Module
{
active = ((Channel*)dest)->IsModeSet('G');
Channel* c = (Channel*)dest;
- if (CHANOPS_EXEMPT(ServerInstance, 'G') && c->GetPrefixValue(user) == OP_VALUE)
+ if (CHANOPS_EXEMPT('G') && c->GetPrefixValue(user) == OP_VALUE)
{
return MOD_RES_PASSTHRU;
}
@@ -115,7 +115,7 @@ class ModuleCensor : public Module
* reload our config file on rehash - we must destroy and re-allocate the classes
* to call the constructor again and re-read our data.
*/
- ConfigReader* MyConf = new ConfigReader(ServerInstance);
+ ConfigReader* MyConf = new ConfigReader;
censors.clear();
for (int index = 0; index < MyConf->Enumerate("badword"); index++)