diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-03-05 16:20:41 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-03-05 16:20:41 +0100 |
commit | 8de3635fab6d3de02b4a352380448316ebefe825 (patch) | |
tree | d8ae4de959bd4c28c5f367d49bf798c155aa3583 /src/coremods/core_xline/cmd_gline.cpp | |
parent | 55b7fabbc3cce02447a0bde21a541f8c66f7d863 (diff) |
Create the core_xline module
Diffstat (limited to 'src/coremods/core_xline/cmd_gline.cpp')
-rw-r--r-- | src/coremods/core_xline/cmd_gline.cpp | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/src/coremods/core_xline/cmd_gline.cpp b/src/coremods/core_xline/cmd_gline.cpp index 18a661b24..44b2192b5 100644 --- a/src/coremods/core_xline/cmd_gline.cpp +++ b/src/coremods/core_xline/cmd_gline.cpp @@ -20,23 +20,15 @@ #include "inspircd.h" #include "xline.h" +#include "core_xline.h" -/** Handle /GLINE. - */ -class CommandGline : public Command +CommandGline::CommandGline(Module* parent) + : Command(parent, "GLINE", 1, 3) { - public: - /** Constructor for gline. - */ - CommandGline (Module* parent) : Command(parent,"GLINE",1,3) { flags_needed = 'o'; Penalty = 0; syntax = "<ident@host> [<duration> :<reason>]"; } - /** Handle command. - * @param parameters The parameters to the command - * @param user The user issuing the command - * @return A value from CmdResult to indicate command success or failure. - */ - CmdResult Handle(const std::vector<std::string>& parameters, User *user); -}; - + flags_needed = 'o'; + Penalty = 0; + syntax = "<ident@host> [<duration> :<reason>]"; +} /** Handle /GLINE */ @@ -111,5 +103,3 @@ CmdResult CommandGline::Handle (const std::vector<std::string>& parameters, User return CMD_SUCCESS; } - -COMMAND_INIT(CommandGline) |