added possibility for subcommands
[NeonServV5.git] / src / modcmd.h
index a2d8447f82a6417e0253a0d88ac1d787fb12fbc4..44333b53e22c9b80075427e66dc8707a132a721d 100644 (file)
@@ -33,6 +33,8 @@
 #define CMDFLAG_EMPTY_ARGS              0x0400
 #define CMDFLAG_REQUIRED                0x0800
 #define CMDFLAG_TEMPONARY_BIND          0x1000
+#define CMDFLAG_FUNCMD                  0x2000
+#define CMDFLAG_ESCAPE_ARGS             0x4000
 
 struct ClientSocket;
 struct UserNode;
@@ -64,6 +66,7 @@ struct cmd_binding {
     int paramcount;
     int global_access;
     char *channel_access;
+    int triggered;
     
     struct cmd_binding *next;
 };
@@ -75,6 +78,8 @@ struct trigger_cache {
     struct trigger_cache *next;
 };
 
+extern int statistics_commands;
+
 void init_modcmd();
 void free_modcmd();
 struct ClientSocket* get_prefered_bot(int botid);
@@ -92,4 +97,7 @@ void bind_set_channel_access(int botid, char *cmd, char *chanaccess);
 struct cmd_binding *find_cmd_binding(int botid, char *cmd);
 void bind_unbound_required_functions(int botid);
 
+void register_command_alias(int botid, char *alias);
+struct cmd_binding *getAllBinds(struct cmd_binding *last);
+
 #endif
\ No newline at end of file