removed ban timeout check (need to do it on another way...)
[NeonServV5.git] / bot_NeonServ.c
index fae9f0e588cdd372b5468abb347c380f41d4af41..bb832f76ae0562e63bf953140e79fb2d6f857c5d 100644 (file)
@@ -131,6 +131,7 @@ static const struct default_language_entry msgtab[] = {
     {"NS_DELBAN_FAIL", "Sorry, no ban found for \002%s\002."},
     {"NS_DELBAN_DONE", "Removed \002%s\002 from the %s ban list."},
     {"NS_NETINFO_HEADER", "\002Network information\002"},
+    {"NS_NETINFO_BOTS", "Bots:"},
     {"NS_NETINFO_UPTIME", "Uptime:"},
     {"NS_NETINFO_TRAFFIC", "Traffic:"},
     {"NS_NETINFO_CACHE", "Cache:"},
@@ -334,17 +335,7 @@ void init_NeonServ() {
 }
 
 void loop_NeonServ() {
-    //check channel bans
-    check_mysql();
-    MYSQL_RES *res;
-    MYSQL_ROW row;
-    printf_mysql_query("SELECT `ban_mask`, `ban_id` FROM `bans` WHERE `ban_expire` != '0' AND `ban_expire` <= UNIX_TIMESTAMP()");
-    res = mysql_use();
-    while ((row = mysql_fetch_row(res)) != NULL) {
-        printf_mysql_query("DELETE FROM `bans` WHERE `ban_id` = '%s'", row[1]);
-        //TODO: remove the ban from the channel
-    }
-    mysql_free();
+    
 }
 
 void free_NeonServ() {