summaryrefslogtreecommitdiff
path: root/modules/core/ns_set.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/ns_set.cpp')
-rw-r--r--modules/core/ns_set.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/core/ns_set.cpp b/modules/core/ns_set.cpp
index d5619a684..c4928785a 100644
--- a/modules/core/ns_set.cpp
+++ b/modules/core/ns_set.cpp
@@ -95,8 +95,10 @@ class CommandNSSet : public Command
source.Reply(NICK_HELP_CMD_SET);
}
- bool AddSubcommand(Command *c)
+ bool AddSubcommand(Module *creator, Command *c)
{
+ c->module = creator;
+ c->service = this->service;
return this->subcommands.insert(std::make_pair(c->name, c)).second;
}
@@ -230,8 +232,8 @@ class NSSet : public Module
this->AddCommand(NickServ, &commandnsset);
- commandnsset.AddSubcommand(&commandnssetdisplay);
- commandnsset.AddSubcommand(&commandnssetpassword);
+ commandnsset.AddSubcommand(this, &commandnssetdisplay);
+ commandnsset.AddSubcommand(this, &commandnssetpassword);
}
};