]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/ctables.h
Add TTL stuff to dns system (pass it to inherited objects)
[user/henk/code/inspircd.git] / include / ctables.h
index 4f9456555b77ccd7c41b254bda1a2f1076552dae..7d1173307b563f632c2c97adf732f80accdaf90b 100644 (file)
@@ -32,6 +32,15 @@ enum CmdResult
        CMD_USER_DELETED = 3,   /* User was deleted! */
 };
 
+/* For commands which should not be replicated to other
+ * servers, we usually return CMD_FAILURE. this isnt readable,
+ * so we define this alias for CMD_FAILURE called
+ * CMD_LOCALONLY, which of course does the same thing but is
+ * much more readable.
+ */
+#define CMD_LOCALONLY CMD_FAILURE
+
+
 /** A structure that defines a command
  */
 class command_t : public Extensible
@@ -77,6 +86,11 @@ class command_t : public Extensible
 
        virtual CmdResult Handle(const char** parameters, int pcnt, userrec* user) = 0;
 
+       virtual CmdResult HandleInternal(const unsigned int id, const std::deque<classbase*> &params)
+       {
+               return CMD_INVALID;
+       }
+
        virtual CmdResult HandleServer(const char** parameters, int pcnt, const std::string &servername)
        {
                return CMD_INVALID;