X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodcmd.h;h=38e3be18124c87f665568c0c971da618831dcc1f;hb=bb5692b9cbff069abbf9573c81e86c3cd2061ceb;hp=2be6f3d5e42a6d9ff80e3d27625228b9e858e916;hpb=0b17bccd2d7fbef5652168d11d4f0af1f41252d3;p=NeonServV5.git diff --git a/src/modcmd.h b/src/modcmd.h index 2be6f3d..38e3be1 100644 --- a/src/modcmd.h +++ b/src/modcmd.h @@ -1,5 +1,5 @@ /* modcmd.h - NeonServ v5.3 - * Copyright (C) 2011 Philipp Kreil (pk910) + * Copyright (C) 2011-2012 Philipp Kreil (pk910) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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);