projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
299d5b0
)
fixed cmd_bind (content of params gets changed on bind_set_parameters)
author
pk910
<philipp@zoelle1.de>
Mon, 3 Oct 2011 18:34:18 +0000
(20:34 +0200)
committer
pk910
<philipp@zoelle1.de>
Mon, 3 Oct 2011 18:34:18 +0000
(20:34 +0200)
src/cmd_neonserv_bind.c
patch
|
blob
|
history
diff --git
a/src/cmd_neonserv_bind.c
b/src/cmd_neonserv_bind.c
index 9507e93403ecefbc37a0ab565fb363ddfa31a76b..05b51a52369d58345fa62d3e591191547f2a4eb9 100644
(file)
--- a/
src/cmd_neonserv_bind.c
+++ b/
src/cmd_neonserv_bind.c
@@
-43,9
+43,9
@@
CMD_BIND(neonserv_cmd_bind) {
return;
}
bind_cmd_to_function(client->botid, argv[0], function);
return;
}
bind_cmd_to_function(client->botid, argv[0], function);
+ printf_mysql_query("INSERT INTO `bot_binds` (`botclass`, `command`, `function`, `parameters`) VALUES ('%d', '%s', '%s', '%s')", client->botid, escape_string(argv[0]), escape_string(function->name), params);
if(*params)
bind_set_parameters(client->botid, argv[0], params);
if(*params)
bind_set_parameters(client->botid, argv[0], params);
- printf_mysql_query("INSERT INTO `bot_binds` (`botclass`, `command`, `function`, `parameters`) VALUES ('%d', '%s', '%s', '%s')", client->botid, escape_string(argv[0]), escape_string(function->name), params);
reply(getTextBot(), user, "NS_BIND_DONE", argv[0], function->name);
logEvent(event);
}
reply(getTextBot(), user, "NS_BIND_DONE", argv[0], function->name);
logEvent(event);
}