return;
}
struct Table *table;
- printf_mysql_query("SELECT `id`, `time`, `text` FROM `helpserv_requests` WHERE `botid` = '%d' ORDER BY `time` DESC", client->clientid);
+ printf_mysql_query("SELECT `id`, `time`, `text` FROM `helpserv_requests` WHERE `botid` = '%d' AND `status` != 2 ORDER BY `time` DESC", client->clientid);
res = mysql_use();
table = table_init(5, mysql_num_rows(res) + 1, 0);
char *content[5];
}
if(table->entrys == 1)
reply(getTextBot(), user, "NS_TABLE_NONE");
+ table_free(table);
}