mirror of
https://github.com/anope/anope.git
synced 2026-07-01 02:06:37 +02:00
Fixed subcommands
This commit is contained in:
@@ -100,8 +100,10 @@ class CommandCSSet : public Command
|
||||
source.Reply(CHAN_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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user