From: pk910 Date: Wed, 17 Aug 2011 03:16:11 +0000 (+0200) Subject: changed access variable name X-Git-Tag: v5.3~535 X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=af677d1b9a536e266c616626aa9558595f123660 changed access variable name --- diff --git a/modcmd.c b/modcmd.c index 469de2e..bde88d1 100644 --- a/modcmd.c +++ b/modcmd.c @@ -336,7 +336,7 @@ int bind_cmd_to_function(int botid, char *cmd, struct cmd_function *func) { cbind->cmd = strdup(cmd); cbind->func = func; cbind->parameters = NULL; - cbind->access = 0; + cbind->gaccess = 0; cbind->flags = 0; cbind->next = cmd_binds[bind_index]; cmd_binds[bind_index] = cbind; @@ -366,7 +366,7 @@ int bind_cmd_to_command(int botid, char *cmd, char *func) { cbind->func = cmdfunc; cbind->next = cmd_binds[bind_index]; cbind->parameters = NULL; - cbind->access = 0; + cbind->gaccess = 0; cbind->flags = 0; cmd_binds[bind_index] = cbind; return 1; @@ -435,7 +435,7 @@ void bind_set_parameters(int botid, char *cmd, char *parameters) { } -void bind_set_gaccess(int botid, char *cmd, int access) { +void bind_set_gaccess(int botid, char *cmd, int gaccess) { } diff --git a/modcmd.h b/modcmd.h index 8b18986..aac4119 100644 --- a/modcmd.h +++ b/modcmd.h @@ -32,7 +32,7 @@ struct cmd_binding { struct cmd_function *func; unsigned int flags; char *parameters; - int access; + int gaccess; struct cmd_binding *next; }; @@ -55,6 +55,6 @@ int bind_cmd_to_command(int botid, char *cmd, char *func); int unbind_cmd(int botid, char *cmd); struct ClientSocket *getTextBot(); void bind_set_parameters(int botid, char *cmd, char *parameters); -void bind_set_gaccess(int botid, char *cmd, int access); +void bind_set_gaccess(int botid, char *cmd, int gaccess); #endif \ No newline at end of file