summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-17 14:40:34 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-17 14:40:34 +0000
commit156d634231fa0c09f85f39bc0b0bbb38b1207acf (patch)
treebaede337d3bc9723652bc0511099f5233df05426 /include
parent6ba56871c0a8e61b2ff3ff69fa82bdf68140a661 (diff)
Add this:
#define CMD_LOCALONLY CMD_FAILURE so that when we say 'return cmd_failure to not allow spanningtree to propogate the message', the constant itself documents the code instead and is more readable. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6035 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-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