fix for deleting bbses if you don't own it.

This commit is contained in:
Andrew Pamment 2018-10-19 14:48:29 +10:00
parent ee194c102f
commit 20e81962b7

View File

@ -259,8 +259,9 @@ void bbs_list() {
}
redraw = 1;
} else if (tolower(c) == 'd') {
struct bbs_list_entry_t *entry = ptr_vector_del(&entries, selected);
struct bbs_list_entry_t *entry = ptr_vector_get(&entries, selected);
if (delete_bbs(entry->id)) {
ptr_vector_del(&entries, selected);
free(entry->bbsname);
free(entry->sysopname);
free(entry->telnet);