]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/ctables.h
Add irc::portparser, a class to parse port ranges in the form "6660,6661,6662-6669...
[user/henk/code/inspircd.git] / include / ctables.h
index 9adf6c37cadb9a107fc71e6ea6c827e6bbda2c06..003d512e8d79ed2fa894af165e5ca9958890e7ec 100644 (file)
@@ -32,6 +32,7 @@ enum CmdResult
        CMD_FAILURE = 0,        /* Command exists, but failed */
        CMD_SUCCESS = 1,        /* Command exists, and succeeded */
        CMD_INVALID = 2,        /* Command doesnt exist at all! */
+       CMD_USER_DELETED = 3,   /* User was deleted! */
 };
 
 /** A structure that defines a command
@@ -79,6 +80,11 @@ class command_t : public Extensible
 
        virtual CmdResult Handle(const char** parameters, int pcnt, userrec* user) = 0;
 
+       virtual CmdResult HandleServer(const char** parameters, int pcnt, const std::string &servername)
+       {
+               return CMD_INVALID;
+       }
+
        void Disable(bool setting)
        {
                disabled = setting;