added support for an external statistics script
[NeonServV5.git] / src / modcmd.h
index 400976825fb21ce3a54f6f662b447a7ac3b20644..4f0616269e1696263604e8f772e3aca4c2383215 100644 (file)
@@ -33,6 +33,7 @@
 #define CMDFLAG_EMPTY_ARGS              0x0400
 #define CMDFLAG_REQUIRED                0x0800
 #define CMDFLAG_TEMPONARY_BIND          0x1000
+#define CMDFLAG_FUNCMD                  0x2000
 
 struct ClientSocket;
 struct UserNode;
@@ -51,6 +52,7 @@ struct cmd_function {
     int paramcount;
     int global_access;
     char *channel_access;
+    int triggered;
     
     struct cmd_function *next;
 };
@@ -75,6 +77,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,6 +96,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_bot_alias(int botid, char *alias);
+void register_command_alias(int botid, char *alias);
+struct cmd_binding *getAllBinds(struct cmd_binding *last);
 
 #endif
\ No newline at end of file