- StrBuf *ListView = NULL;
-
- /** Determine whether the user is trying to change views */
- if (havebstr("view")) {
- ListView = NewStrBufDup(SBSTR("view"));
- set_preference("roomlistview", ListView, 1);
- }
- /** Sanitize the input so its safe */
- if ((get_preference("roomlistview", &ListView) == 0)||
- (
- (strcasecmp(ChrPtr(ListView), "folders") != 0) &&
- (strcasecmp(ChrPtr(ListView), "rooms") != 0)
- )
- )
- {
- ListView = NewStrBufPlain(HKEY("rooms"));
- set_preference("roomlistview", ListView, 0);
- }
- url_do_template();
+ DeleteHash(&WC->Rooms);
+ output_headers(1, 1, 1, 0, 0, 0);
+ do_template("knrooms");
+ wDumpContent(1);