added possibility for subcommands
[NeonServV5.git] / src / modcmd.h
index 4f0616269e1696263604e8f772e3aca4c2383215..44333b53e22c9b80075427e66dc8707a132a721d 100644 (file)
@@ -34,6 +34,7 @@
 #define CMDFLAG_REQUIRED                0x0800
 #define CMDFLAG_TEMPONARY_BIND          0x1000
 #define CMDFLAG_FUNCMD                  0x2000
+#define CMDFLAG_ESCAPE_ARGS             0x4000
 
 struct ClientSocket;
 struct UserNode;
@@ -52,7 +53,6 @@ struct cmd_function {
     int paramcount;
     int global_access;
     char *channel_access;
-    int triggered;
     
     struct cmd_function *next;
 };
@@ -66,6 +66,7 @@ struct cmd_binding {
     int paramcount;
     int global_access;
     char *channel_access;
+    int triggered;
     
     struct cmd_binding *next;
 };