X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodcmd.h;h=44333b53e22c9b80075427e66dc8707a132a721d;hb=75927aa05fd7b74f1d5b2f5adf5f65ff60e6cccd;hp=40ad373ea3a403691ec341e43d9fb627e269f9da;hpb=b9f6cb8dbf93da79626a34f3d090db35d16b60c0;p=NeonServV5.git diff --git a/src/modcmd.h b/src/modcmd.h index 40ad373..44333b5 100644 --- a/src/modcmd.h +++ b/src/modcmd.h @@ -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,7 +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_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