/* cmd_global_addbot.c - 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
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);
}