Flush the cached room list when logging in or out.
[citadel.git] / webcit / auth.c
index 207d4a9c550ca52703dda2a84ceecfcfadaf923f..9d2eaa3e66b2d49c694aa24f4566d97ea3ccfd1a 100644 (file)
@@ -135,6 +135,7 @@ void become_logged_in(const StrBuf *user, const StrBuf *pass, StrBuf *serv_respo
        get_preference("floordiv_expanded", &FloorDiv);
        WCC->floordiv_expanded = FloorDiv;
        FreeStrBuf(&Buf);
+       FlushRoomlist();
 }
 
 
@@ -497,6 +498,7 @@ void do_logout(void)
        FlushStrBuf(WCC->wc_username);
        FlushStrBuf(WCC->wc_password);
        FlushStrBuf(WCC->wc_fullname);
+       FlushRoomlist();
 
        serv_puts("LOUT");
        serv_getln(buf, sizeof buf);