X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Froomops.c;h=1b7925641687d237af1800472de2a4442dabd250;hp=ad90f2d3ad9d580deb9e78fc740b65ba41de92f2;hb=c27e730a913cb5cd2fdd7ab6825b84892b832bf4;hpb=82dd23c039606ec1795a8cdf6d1fdcc3bc2ca504 diff --git a/webcit/roomops.c b/webcit/roomops.c index ad90f2d3a..1b7925641 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -258,13 +258,11 @@ void zapped_list(void) * */ -void embed_room_banner(char *got, int navbar_style) { +void embed_room_banner(char *got) +{ wcsession *WCC = WC; char buf[256]; - char buf2[1024]; - char with_files[256]; - int file_count=0; - + /* * We need to have the information returned by a GOTO server command. * If it isn't supplied, we fake it by issuing our own GOTO. @@ -282,7 +280,7 @@ void embed_room_banner(char *got, int navbar_style) { " room_is_trash = %d; \n" "\n", ((WC->CurRoom.RAFlags & UA_ISTRASH) != 0) - ); + ); /* * If the user happens to select the "make this my start page" link, @@ -295,7 +293,7 @@ void embed_room_banner(char *got, int navbar_style) { StrBufPrintf(WCC->Hdr->this_page, "dotskip?room=%s", ChrPtr(WC->CurRoom.name) - ); + ); /* Check for new mail. */ WC->new_mail = extract_int(&got[4], 9); @@ -303,11 +301,11 @@ void embed_room_banner(char *got, int navbar_style) { do_template("roombanner", NULL); /* roombanner contains this for mobile */ - if (navbar_style != navbar_none && (WC->is_mobile < 1)) { + if (WC->is_mobile < 1) { wc_printf("
\n"); } - } @@ -3295,7 +3288,7 @@ void tmplput_current_room(StrBuf *Target, WCTemplputParams *TP) void tmplput_roombanner(StrBuf *Target, WCTemplputParams *TP) { wc_printf("
\n"); - embed_room_banner(NULL, navbar_default); + embed_room_banner(NULL); wc_printf("
\n"); }