projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
45171ce
)
changed access variable name
author
pk910
<philipp@zoelle1.de>
Wed, 17 Aug 2011 03:16:11 +0000
(
05:16
+0200)
committer
pk910
<philipp@zoelle1.de>
Wed, 17 Aug 2011 03:16:11 +0000
(
05:16
+0200)
modcmd.c
patch
|
blob
|
history
modcmd.h
patch
|
blob
|
history
diff --git
a/modcmd.c
b/modcmd.c
index 469de2e20f5a10ddb08a5d9ed9dbef8045332a46..bde88d19991210699d67513d9aadb46d038afb3f 100644
(file)
--- 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->cmd = strdup(cmd);
cbind->func = func;
cbind->parameters = NULL;
- cbind->access = 0;
+ cbind->
g
access = 0;
cbind->flags = 0;
cbind->next = cmd_binds[bind_index];
cmd_binds[bind_index] = cbind;
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->func = cmdfunc;
cbind->next = cmd_binds[bind_index];
cbind->parameters = NULL;
- cbind->access = 0;
+ cbind->
g
access = 0;
cbind->flags = 0;
cmd_binds[bind_index] = cbind;
return 1;
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
g
access) {
}
}
diff --git
a/modcmd.h
b/modcmd.h
index 8b189863927a6b8756057f999cf02101833ee21f..aac4119e42b735c1411f8900c2ff372e17ecd059 100644
(file)
--- a/
modcmd.h
+++ b/
modcmd.h
@@
-32,7
+32,7
@@
struct cmd_binding {
struct cmd_function *func;
unsigned int flags;
char *parameters;
struct cmd_function *func;
unsigned int flags;
char *parameters;
- int access;
+ int
g
access;
struct cmd_binding *next;
};
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);
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
g
access);
#endif
\ No newline at end of file
#endif
\ No newline at end of file