From: Wilfried Göesgens Date: Sat, 16 Jan 2010 15:26:33 +0000 (+0000) Subject: * if the config room has another view than VIEW_BBS, set it. Else it might stop us... X-Git-Tag: v7.86~495 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=f703edfe52a9d17b5b309d7dcb095b15713fb629 * if the config room has another view than VIEW_BBS, set it. Else it might stop us from saving our Config. --- diff --git a/webcit/preferences.c b/webcit/preferences.c index aeca0028a..a00c73293 100644 --- a/webcit/preferences.c +++ b/webcit/preferences.c @@ -350,8 +350,21 @@ void save_preferences(void) return; /* oh well. */ } -//void do_change_view(int newview) { + /* make shure the config room has the right type, else it might reject our config */ + if (Room.view != VIEW_BBS) { + serv_printf("VIEW %d", VIEW_BBS); + StrBuf_ServGetln(ReadBuf); + if (GetServerStatus(ReadBuf, NULL) != 2) { + /* UPS? */ + } + else if (goto_config_room(ReadBuf, &Room) != 0) { + FreeStrBuf(&ReadBuf); + FlushFolder(&Room); + + return; /* oh well. */ + } + } serv_puts("MSGS ALL|0|1"); StrBuf_ServGetln(ReadBuf);