{"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:"},
}
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() {