fix for deleting bbses if you don't own it.
This commit is contained in:
parent
ee194c102f
commit
20e81962b7
@ -259,8 +259,9 @@ void bbs_list() {
|
|||||||
}
|
}
|
||||||
redraw = 1;
|
redraw = 1;
|
||||||
} else if (tolower(c) == 'd') {
|
} 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)) {
|
if (delete_bbs(entry->id)) {
|
||||||
|
ptr_vector_del(&entries, selected);
|
||||||
free(entry->bbsname);
|
free(entry->bbsname);
|
||||||
free(entry->sysopname);
|
free(entry->sysopname);
|
||||||
free(entry->telnet);
|
free(entry->telnet);
|
||||||
|
Reference in New Issue
Block a user