]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/command_parse.cpp
cmd_invite Extend scope of the prefix character variable
[user/henk/code/inspircd.git] / src / command_parse.cpp
index 7998d9cc3a982f0f71732a2f7dfe4af2b831e9f3..c123353b0a96b94da8c6ded03762afdc7c92be3e 100644 (file)
@@ -379,6 +379,12 @@ Command::~Command()
        ServerInstance->Parser.RemoveCommand(this);
 }
 
+void Command::RegisterService()
+{
+       if (!ServerInstance->Parser.AddCommand(this))
+               throw ModuleException("Command already exists: " + name);
+}
+
 void CommandParser::ProcessBuffer(std::string &buffer,LocalUser *user)
 {
        if (buffer.empty())