changed Makefile; build all commands as an own file
[NeonServV5.git] / cmd_neonserv_netinfo.c
index 5d814d8f8d9efb9fe0db6050013a91d3be351710..c8fd1b643d87ecaa4fea62678e2e0ca9912c8765 100644 (file)
@@ -1,9 +1,11 @@
 
+#include "cmd_neonserv.h"
+
 /*
 * no args
 */
 
-static CMD_BIND(neonserv_cmd_netinfo) {
+CMD_BIND(neonserv_cmd_netinfo) {
     reply(getTextBot(), user, "NS_NETINFO_HEADER");
     char tmp[MAXLEN];
     struct Table *table;
@@ -71,7 +73,6 @@ static CMD_BIND(neonserv_cmd_netinfo) {
     
     MYSQL_RES *res;
     MYSQL_ROW row;
-    check_mysql();
     printf_mysql_query("SHOW TABLE STATUS");
     res = mysql_use();
     int mysql_entrys[4];