Summary page displays site name instead of user name when not logged in
[citadel.git] / webcit / summary.c
index b9803a084dd1ab942e58b1083be3effb584c7b84..3ae86f83560f9cac50d1ed57f518b841aa458ca5 100644 (file)
@@ -272,7 +272,9 @@ void summary(void) {
        wc_printf("<table border=0><tr>");
         wc_printf("<td><img src=\"static/summscreen_48x.gif\"></td>");
         wc_printf("<td><h1>");
-        snprintf(title, sizeof title, _("Summary page for %s"), ChrPtr(WC->wc_fullname));
+        snprintf(title, sizeof title, _("Summary page for %s"),
+               ( (WC->logged_in) ?  ChrPtr(WC->wc_fullname) : ChrPtr(WC->serv_info->serv_humannode))
+       );
         escputs(title);
         wc_printf("</h1><h2>");
         output_date();