From 2a6c57f11acf980307b93ae44392d618ff1be9f8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Mon, 9 Aug 2010 21:19:27 +0000 Subject: [PATCH] * remove the now unneccesary stuff from embed_room_banner() --- webcit/roomops.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/webcit/roomops.c b/webcit/roomops.c index eaf928e9e..a5243ebca 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -341,29 +341,6 @@ void embed_room_banner(char *got, int navbar_style) { WC->new_mail = extract_int(&got[4], 9); WC->CurRoom.view = extract_int(&got[4], 11); - /* Is this a directory room and does it contain files and how many? */ - if ((WC->CurRoom.QRFlags & QR_DIRECTORY) && (WC->CurRoom.QRFlags & QR_VISDIR)) - { - serv_puts("RDIR"); - serv_getln(buf2, sizeof buf2); - if (buf2[0] == '1') while (serv_getln(buf2, sizeof buf2), strcmp(buf2, "000")) - file_count++; - snprintf (with_files, sizeof with_files, - "; %d %s ", - file_count, - ((file_count>1) || (file_count == 0) ? _("files") : _("file"))); - } - else - strcpy (with_files, ""); - - svprintf(HKEY("NUMMSGS"), WCS_STRING, - _("%d new of %d messages%s"), - extract_int(&got[4], 1), - extract_int(&got[4], 2), - with_files - ); - svcallback("VIEWOMATIC", embed_view_o_matic); - do_template("roombanner", NULL); /* roombanner contains this for mobile */ if (navbar_style != navbar_none && (WC->is_mobile < 1)) { -- 2.30.2