Fix bug in subscribing

This commit is contained in:
Andrew Pamment 2017-09-21 10:55:58 +10:00
parent 2f5f00a102
commit d73da039c6
2 changed files with 3 additions and 3 deletions

View File

@ -2652,7 +2652,7 @@ void msg_conf_sub_bases() {
s_printf("\r\n");
if (strlen(buffer) > 0) {
toggle_area = atoi(buffer);
msgbase_sub_unsub(gUser->cur_mail_conf, i);
msgbase_sub_unsub(gUser->cur_mail_conf, toggle_area);
lines = 0;
break;
@ -2667,7 +2667,7 @@ void msg_conf_sub_bases() {
s_printf("\r\n");
if (strlen(buffer) > 0) {
toggle_area = atoi(buffer);
msgbase_sub_unsub(gUser->cur_mail_conf, i);
msgbase_sub_unsub(gUser->cur_mail_conf, toggle_area);
lines = 0;
} else {
done = 1;

View File

@ -182,7 +182,7 @@ int msgbase_sub_unsub(int conference, int msgbase) {
sqlite3_bind_int(res, 2, msgbase);
sqlite3_bind_int(res, 3, gUser->id);
sqlite3_step(res);
rc = sqlite3_step(res);
sqlite3_finalize(res);
sqlite3_close(db);