summaryrefslogtreecommitdiff
path: root/modules/core/ns_saset.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/ns_saset.cpp')
-rw-r--r--modules/core/ns_saset.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/core/ns_saset.cpp b/modules/core/ns_saset.cpp
index 42541f99b..366c35862 100644
--- a/modules/core/ns_saset.cpp
+++ b/modules/core/ns_saset.cpp
@@ -101,8 +101,10 @@ class CommandNSSASet : public Command
source.Reply(NICK_HELP_CMD_SASET);
}
- 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;
}
@@ -249,8 +251,8 @@ class NSSASet : public Module
this->AddCommand(NickServ, &commandnssaset);
- commandnssaset.AddSubcommand(&commandnssasetdisplay);
- commandnssaset.AddSubcommand(&commandnssasetpassword);
+ commandnssaset.AddSubcommand(this, &commandnssasetdisplay);
+ commandnssaset.AddSubcommand(this, &commandnssasetpassword);
}
};