aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_setident.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-08-11 00:15:07 +0000
committerGravatar brain2006-08-11 00:15:07 +0000
commit66098d307c036997e51eaea21724615e27fdc3e9 (patch)
treec2e41b2e2f86efdfca62545c4e61ebae3ed38fe5 /src/modules/m_setident.cpp
parentLast of Server:: methods moved to InspIRCd::. Server:: removed. (diff)
(Bigger than it looks, i did this with perl inplace edit) -- commands now take an InspIRCd* param to their constructor, so that you can do stuff within them without an extern
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4862 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_setident.cpp')
-rw-r--r--src/modules/m_setident.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_setident.cpp b/src/modules/m_setident.cpp
index 828f25792..883755598 100644
--- a/src/modules/m_setident.cpp
+++ b/src/modules/m_setident.cpp
@@ -11,7 +11,7 @@ extern InspIRCd* ServerInstance;
class cmd_setident : public command_t
{
public:
- cmd_setident() : command_t("SETIDENT", 'o', 1)
+ cmd_setident (InspIRCd* Instance) : command_t(Instance,"SETIDENT", 'o', 1)
{
this->source = "m_setident.so";
syntax = "<new-ident>";
@@ -42,7 +42,7 @@ class ModuleSetIdent : public Module
ModuleSetIdent(InspIRCd* Me) : Module::Module(Me)
{
- mycommand = new cmd_setident();
+ mycommand = new cmd_setident(ServerInstance);
ServerInstance->AddCommand(mycommand);
}