+Sun Oct 9 00:31:33 EDT 2005 Art Cancro <ajc@uncensored.citadel.org>
+* Removed new mail notification from the room banner, and placed it into
+ the Mail button on the iconbar instead. However, this is still broken
+ because the server's new mail notification is insufficient for this...
+
Sun Oct 9 00:12:11 EDT 2005 Art Cancro <ajc@uncensored.citadel.org>
* serv_crypto.c: don't attempt to continue reading/writing an SSL context
that has already been closed. Doing so crashes the webserver, which
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
-
}
if (ib_displayas != IB_PICONLY) {
wprintf(_("Mail"));
+ if (WC->new_mail != WC->remember_new_mail) {
+ wprintf(" <b>(%d)</b>", WC->new_mail);
+ WC->remember_new_mail = WC->new_mail;
+ }
}
wprintf("</A></li>\n");
}
}
-/* Let the user know if new mail has arrived
- */
-void embed_newmail_button(void) {
- if ( (WC->new_mail > WC->remember_new_mail) && (WC->new_mail>0) ) {
- wprintf(
- "<A HREF=\"/dotgoto?room=_MAIL_\">"
- "<IMG SRC=\"/static/privatemess_32x.gif\" border=0 "
- "ALT=\"");
- wprintf(_("You have new mail"));
- wprintf("\">"
- "<br /><SPAN CLASS=\"youhavemail\">");
- wprintf(_("%d new mail"), WC->new_mail);
- wprintf("</SPAN></A>");
- WC->remember_new_mail = WC->new_mail;
- }
-}
-
-
/*
* Display the current view and offer an option to change it
svprintf("TOTALMSGS", WCS_STRING, "%d", extract_int(&got[4], 2));
svcallback("ROOMPIC", embed_room_graphic);
svcallback("ROOMINFO", readinfo);
- svcallback("YOUHAVEMAIL", embed_newmail_button);
svcallback("VIEWOMATIC", embed_view_o_matic);
svcallback("START", offer_start_page);
<td align="left" bgcolor="#444455">
<span class="room_banner_room_info"><?ROOMINFO></span>
</td>
- <td align="left" valign="top" bgcolor="#444455">
- <?YOUHAVEMAIL>
- </td>
<td align="right" valign="top" bgcolor="#444455">
<?VIEWOMATIC>
</td>