summaryrefslogtreecommitdiff
path: root/include/ctables.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ctables.h')
-rw-r--r--include/ctables.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ctables.h b/include/ctables.h
index 4f9456555..b8d9c03fa 100644
--- a/include/ctables.h
+++ b/include/ctables.h
@@ -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