From 40f1092858d2e65098518ce9ec6183d76ba69c19 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Fri, 27 Jan 2006 20:04:11 +0000 Subject: [PATCH] Do a JavaScript alert if we fail to open the Instant Messenger window. --- webcit/ChangeLog | 3 +++ webcit/paging.c | 50 ++++++++++++++++++++++++++++++++---------------- 2 files changed, 37 insertions(+), 16 deletions(-) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index c85fa733d..1a4feaa4e 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,5 +1,8 @@ $Id$ +Fri Jan 27 15:03:42 EST 2006 ajc +* Do a JavaScript alert if we fail to open the Instant Messenger window. + Fri Jan 27 13:50:38 EST 2006 ajc * Page popups work again. diff --git a/webcit/paging.c b/webcit/paging.c index 097b6b74b..3dee4f533 100644 --- a/webcit/paging.c +++ b/webcit/paging.c @@ -160,34 +160,52 @@ void page_popup(void) { char buf[SIZ]; + /** JavaScript function to alert the user that popups are probably blocked */ + wprintf("\n", + _("You have one or more instant messages waiting, but the Citadel Instant Messenger " + "window failed to open. This is probably because you have a popup blocker " + "installed. Please configure your popup blocker to allow popups from this site " + "if you wish to receive instant messages.") + ); + /** First, do the check as part of our page load. */ serv_puts("NOOP"); serv_getln(buf, sizeof buf); if (buf[3] == '*') { if ((time(NULL) - WC->last_pager_check) > 60) { wprintf("" ); } } /** Then schedule it to happen again a minute from now if the user is idle. */ - wprintf(" \n" + wprintf(" " ); } -- 2.39.2