CommandIson(Module* parent)
: SplitCommand(parent, "ISON", 1)
{
- syntax = "<nick> {nick}";
+ syntax = "<nick> [<nick>]+";
}
/** Handle command.
* @param parameters The parameters to the command
return CMD_SUCCESS;
}
+class CoreModIson : public Module
+{
+ private:
+ CommandIson cmd;
+
+ public:
+ CoreModIson()
+ : cmd(this)
+ {
+ }
+
+ Version GetVersion() CXX11_OVERRIDE
+ {
+ return Version("Provides the ISON command", VF_CORE | VF_VENDOR);
+ }
+};
-COMMAND_INIT(CommandIson)
+MODULE_INIT(CoreModIson)