projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added "nowho" parameter to debug userlist and fixed memory leak in DBHelper.c
[NeonServV5.git]
/
src
/
cmd_global_addbot.c
diff --git
a/src/cmd_global_addbot.c
b/src/cmd_global_addbot.c
index 76dd5c6ca4098ad0085db1f120c683a947cec3ca..1783834107ae5fab03b822e8d78746b5836d7288 100644
(file)
--- a/
src/cmd_global_addbot.c
+++ b/
src/cmd_global_addbot.c
@@
-1,5
+1,5
@@
-/* cmd_global_addbot.c - NeonServ v5.
2
- * Copyright (C) 2011 Philipp Kreil (pk910)
+/* cmd_global_addbot.c - NeonServ v5.
3
+ * 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
*
* 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
@@
-36,7
+36,7
@@
CMD_BIND(global_cmd_addbot) {
return;
}
printf_mysql_query("INSERT INTO `bots` (`nick`, `botclass`) VALUES ('%s', '%d')", escape_string(argv[0]), botid);
return;
}
printf_mysql_query("INSERT INTO `bots` (`nick`, `botclass`) VALUES ('%s', '%d')", escape_string(argv[0]), botid);
- botid = (int) mysql_insert_id(
mysql_conn
);
+ botid = (int) mysql_insert_id(
get_mysql_conn()
);
reply(getTextBot(), user, "NS_ADDBOT_DONE", argv[0], botid);
logEvent(event);
}
reply(getTextBot(), user, "NS_ADDBOT_DONE", argv[0], botid);
logEvent(event);
}