summaryrefslogtreecommitdiff
path: root/src/modules/m_svshold.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_svshold.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_svshold.cpp')
-rw-r--r--src/modules/m_svshold.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/m_svshold.cpp b/src/modules/m_svshold.cpp
index e99adcaec..26f9cac1a 100644
--- a/src/modules/m_svshold.cpp
+++ b/src/modules/m_svshold.cpp
@@ -23,8 +23,8 @@ class SVSHold : public XLine
public:
irc::string nickname;
- SVSHold(InspIRCd* Instance, time_t s_time, long d, std::string src, std::string re, std::string nick)
- : XLine(Instance, s_time, d, src, re, "SVSHOLD")
+ SVSHold(time_t s_time, long d, std::string src, std::string re, std::string nick)
+ : XLine(s_time, d, src, re, "SVSHOLD")
{
this->nickname = nick.c_str();
}
@@ -64,13 +64,13 @@ public:
class SVSHoldFactory : public XLineFactory
{
public:
- SVSHoldFactory(InspIRCd* Instance) : XLineFactory(Instance, "SVSHOLD") { }
+ SVSHoldFactory() : XLineFactory("SVSHOLD") { }
/** Generate a shun
*/
XLine* Generate(time_t set_time, long duration, std::string source, std::string reason, std::string xline_specific_mask)
{
- return new SVSHold(ServerInstance, set_time, duration, source, reason, xline_specific_mask);
+ return new SVSHold(set_time, duration, source, reason, xline_specific_mask);
}
};
@@ -117,7 +117,7 @@ class CommandSvshold : public Command
try
{
- r = new SVSHold(ServerInstance, ServerInstance->Time(), duration, user->nick.c_str(), parameters[2].c_str(), parameters[0].c_str());
+ r = new SVSHold(ServerInstance->Time(), duration, user->nick.c_str(), parameters[2].c_str(), parameters[0].c_str());
}
catch (...)
{
@@ -163,7 +163,7 @@ class ModuleSVSHold : public Module
public:
- ModuleSVSHold(InspIRCd* Me) : Module(Me), cmd(this), s(Me)
+ ModuleSVSHold() : cmd(this)
{
ServerInstance->XLines->RegisterFactory(&s);
ServerInstance->AddCommand(&cmd);