X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodcmd.h;fp=src%2Fmodcmd.h;h=9bb799cc1a3194158da7a5f7fceff811a32c7ca8;hb=5a9d04e79a4d27880eb5a588cbc50e00a4cd26aa;hp=2be6f3d5e42a6d9ff80e3d27625228b9e858e916;hpb=be17e22b842b7b831694422b204777c93fd478bb;p=NeonServV5.git diff --git a/src/modcmd.h b/src/modcmd.h index 2be6f3d..9bb799c 100644 --- a/src/modcmd.h +++ b/src/modcmd.h @@ -72,6 +72,8 @@ struct cmd_binding { struct cmd_binding *next; }; +#define BIND_FLAGS(BIND) (BIND->flags | BIND->func->flags) + struct trigger_cache { int botid; int clientid; @@ -116,6 +118,9 @@ void bind_botwise_set_global_access(int botid, int clientid, char *cmd, int gacc #define bind_set_channel_access(BOTID,CMD,CACCESS) bind_botwise_set_channel_access(BOTID, 0, CMD, CACCESS) void bind_botwise_set_channel_access(int botid, int clientid, char *cmd, char *chanaccess); +#define bind_set_bind_flags(BOTID,CMD,FLAGS) bind_botwise_set_bind_flags(BOTID, 0, CMD, FLAGS) +void bind_botwise_set_bind_flags(int botid, int clientid, char *cmd, unsigned int flags); + #define find_cmd_binding(BOTID,CMD) find_botwise_cmd_binding(BOTID, 0, CMD) struct cmd_binding *find_botwise_cmd_binding(int botid, int clientid, char *cmd);