-future
+ctestsys
use uncnsrd
-phonenum netproc[4026]: Adding non-neighbor system <catchat> to map
-gdom or system <catchat> to map
-humannode The Future BBS
-lastcontact 952979823 Mon Mar 13 15:37:03 2000
+phonenum US 612 470 9635
+gdom MN
+humannode C-86 Test System
+lastcontact 953174223 Wed Mar 15 21:37:03 2000
-catchat
+bccs
use uncnsrd
-phonenum netproc[4026]: Adding non-neighbor system <rundale> to map
-gdom or system <rundale> to map
-humannode 'Cat Chat
-lastcontact 952138915 Fri Mar 3 22:01:55 2000
+phonenum netproc[7145]: Adding non-neighbor system <internet> to map
+gdom or system <internet> to map
+humannode BCCS
+lastcontact 953246224 Thu Mar 16 17:37:04 2000
-rundale
-use uncnsrd
-phonenum US 609 854 9135
-gdom NJ
-humannode Rundale
-lastcontact 952138909 Fri Mar 3 22:01:49 2000
+internet
+uum %s
+humannode Internet Gateway
+lastcontact 953307423 Fri Mar 17 10:37:03 2000
-jacs
-use uncnsrd
-phonenum US6093461224
-gdom NJ
-humannode JACS
-lastcontact 952839428 Sun Mar 12 00:37:08 2000
+uncnsrd
+bin Mail
+phonenum US 914 244 3252
+humannode Uncensored
+lastcontact 953282223 Fri Mar 17 03:37:03 2000
-dogpound2
-use uncnsrd
-phonenum netproc[4026]: Adding non-neighbor system <sbn> to map
-gdom or system <sbn> to map
-humannode Dog Pound BBS II
-lastcontact 952958224 Mon Mar 13 09:37:04 2000
+test
+bin Mail
-sbn
-use uncnsrd
-phonenum netproc[4026]: Adding non-neighbor system <feathers> to map
-gdom or system <feathers> to map
-humannode Super BBS Network
-lastcontact 952138908 Fri Mar 3 22:01:48 2000
+tux
+bin Mail
+phonenum US 800 555 1212
+humannode My System
+lastcontact 951540103 Fri Feb 25 23:41:43 2000
-feathers
+tesseract
+bin Mail
+phonenum US 800 555 1212
+humannode Tesseract Project
+lastcontact 953307423 Fri Mar 17 10:37:03 2000
+
+pixel
use uncnsrd
-phonenum CA (604) 589-8539
-gdom BC
-humannode Feathers & Furballs
-lastcontact 952925823 Mon Mar 13 00:37:03 2000
+phonenum netproc[4026]: Adding non-neighbor system <tesseract> to map
+gdom or system <tesseract> to map
+humannode PixelBBS
+lastcontact 953271423 Fri Mar 17 00:37:03 2000
-charis
+barbaria
use uncnsrd
-phonenum netproc[4026]: Adding non-neighbor system <gateway> to map
-gdom or system <gateway> to map
-humannode MascotSpeak
-lastcontact 952138904 Fri Mar 3 22:01:44 2000
+phonenum netproc[4026]: Adding non-neighbor system <pixel> to map
+gdom or system <pixel> to map
+humannode Barbaria
+lastcontact 952138915 Fri Mar 3 22:01:55 2000
-gateway
+haven
use uncnsrd
-phonenum US (609) 931-3014
-gdom NJ
-humannode Gateway
-lastcontact 952138913 Fri Mar 3 22:01:53 2000
+phonenum netproc[4026]: Adding non-neighbor system <barbaria> to map
+gdom or system <barbaria> to map
+humannode Haven BBS
+lastcontact 952879023 Sun Mar 12 11:37:03 2000
-amigazon
+mnmensa
use uncnsrd
-phonenum US (609) 953 8159
-gdom NJ
-humannode The Amiga Zone
-lastcontact 952720625 Fri Mar 10 15:37:05 2000
+phonenum US (612) 757-7307
+gdom MN
+humannode MN-Mensa
+lastcontact 952138905 Fri Mar 3 22:01:45 2000
cbbs
use uncnsrd
humannode The CBBS
lastcontact 952138903 Fri Mar 3 22:01:43 2000
-mnmensa
+amigazon
use uncnsrd
-phonenum US (612) 757-7307
-gdom MN
-humannode MN-Mensa
-lastcontact 952138905 Fri Mar 3 22:01:45 2000
+phonenum US (609) 953 8159
+gdom NJ
+humannode The Amiga Zone
+lastcontact 952720625 Fri Mar 10 15:37:05 2000
-haven
+gateway
use uncnsrd
-phonenum netproc[4026]: Adding non-neighbor system <barbaria> to map
-gdom or system <barbaria> to map
-humannode Haven BBS
-lastcontact 952879023 Sun Mar 12 11:37:03 2000
+phonenum US (609) 931-3014
+gdom NJ
+humannode Gateway
+lastcontact 952138913 Fri Mar 3 22:01:53 2000
-barbaria
+charis
use uncnsrd
-phonenum netproc[4026]: Adding non-neighbor system <pixel> to map
-gdom or system <pixel> to map
-humannode Barbaria
-lastcontact 952138915 Fri Mar 3 22:01:55 2000
+phonenum netproc[4026]: Adding non-neighbor system <gateway> to map
+gdom or system <gateway> to map
+humannode MascotSpeak
+lastcontact 952138904 Fri Mar 3 22:01:44 2000
-pixel
+feathers
use uncnsrd
-phonenum netproc[4026]: Adding non-neighbor system <tesseract> to map
-gdom or system <tesseract> to map
-humannode PixelBBS
-lastcontact 952904223 Sun Mar 12 18:37:03 2000
-
-tesseract
-bin Mail
-phonenum US 800 555 1212
-humannode Tesseract Project
-lastcontact 953138227 Wed Mar 15 11:37:07 2000
+phonenum CA (604) 589-8539
+gdom BC
+humannode Feathers & Furballs
+lastcontact 952925823 Mon Mar 13 00:37:03 2000
-tux
-bin Mail
-phonenum US 800 555 1212
-humannode My System
-lastcontact 951540103 Fri Feb 25 23:41:43 2000
+sbn
+use uncnsrd
+phonenum netproc[4026]: Adding non-neighbor system <feathers> to map
+gdom or system <feathers> to map
+humannode Super BBS Network
+lastcontact 952138908 Fri Mar 3 22:01:48 2000
-test
-bin Mail
+dogpound2
+use uncnsrd
+phonenum netproc[4026]: Adding non-neighbor system <sbn> to map
+gdom or system <sbn> to map
+humannode Dog Pound BBS II
+lastcontact 953217423 Thu Mar 16 09:37:03 2000
-uncnsrd
-bin Mail
-phonenum US 914 244 3252
-humannode Uncensored
-lastcontact 953087823 Tue Mar 14 21:37:03 2000
+jacs
+use uncnsrd
+phonenum US6093461224
+gdom NJ
+humannode JACS
+lastcontact 952839428 Sun Mar 12 00:37:08 2000
-internet
-uum %s
-humannode Internet Gateway
-lastcontact 953138227 Wed Mar 15 11:37:07 2000
+rundale
+use uncnsrd
+phonenum US 609 854 9135
+gdom NJ
+humannode Rundale
+lastcontact 952138909 Fri Mar 3 22:01:49 2000
-bccs
+catchat
use uncnsrd
-phonenum netproc[7145]: Adding non-neighbor system <internet> to map
-gdom or system <internet> to map
-humannode BCCS
-lastcontact 952943824 Mon Mar 13 05:37:04 2000
+phonenum netproc[4026]: Adding non-neighbor system <rundale> to map
+gdom or system <rundale> to map
+humannode 'Cat Chat
+lastcontact 952138915 Fri Mar 3 22:01:55 2000
-ctestsys
+future
use uncnsrd
-phonenum US 612 470 9635
-gdom MN
-humannode C-86 Test System
-lastcontact 953102223 Wed Mar 15 01:37:03 2000
+phonenum netproc[4026]: Adding non-neighbor system <catchat> to map
+gdom or system <catchat> to map
+humannode The Future BBS
+lastcontact 952979823 Mon Mar 13 15:37:03 2000
#include "dynloader.h"
#include "tools.h"
#include "msgbase.h"
+#include "user_ops.h"
+#include "room_ops.h"
struct ChatLine *ChatQueue = NULL;
int ChatLastMsg = 0;
*/
int send_express_message(char *lun, char *x_user, char *x_msg)
{
- int message_sent = 0;
+ int message_sent = 0; /* number of successful sends */
+
struct CitContext *ccptr;
struct ExpressMessage *newmsg, *findend;
char *un;
size_t msglen = 0;
- int do_send = 0;
+ int do_send = 0; /* set to 1 to actually page, not
+ * just check to see if we can.
+ */
+ struct savelist *sl = NULL; /* list of rooms to save this page */
+ struct savelist *sptr;
+ struct CtdlMessage *logmsg;
+ char roomname[ROOMNAMELEN];
+ long msgnum;
if (strlen(x_msg) > 0) {
msglen = strlen(x_msg) + 4;
findend = findend->next;
findend->next = newmsg;
}
+
+ /* and log it ... */
+ if (ccptr != CC) {
+ sptr = (struct savelist *)
+ malloc(sizeof(struct savelist));
+ sptr->next = sl;
+ MailboxName(sptr->roomname,
+ &ccptr->usersupp, PAGELOGROOM);
+ sl = sptr;
+ }
}
++message_sent;
}
end_critical_section(S_SESSION_TABLE);
/* Log the page to disk if configured to do so */
- if ((strlen(config.c_logpages) > 0) && (do_send) ) {
- quickie_message(lun, x_user, config.c_logpages, x_msg);
+ if ( (do_send) && (message_sent) ) {
+
+ logmsg = mallok(sizeof(struct CtdlMessage));
+ memset(logmsg, 0, sizeof(struct CtdlMessage));
+ logmsg->cm_magic = CTDLMESSAGE_MAGIC;
+ logmsg->cm_anon_type = MES_NORMAL;
+ logmsg->cm_format_type = 0;
+ logmsg->cm_fields['A'] = strdoop(lun);
+ logmsg->cm_fields['N'] = strdoop(NODENAME);
+ logmsg->cm_fields['O'] = strdoop(PAGELOGROOM);
+ logmsg->cm_fields['R'] = strdoop(x_user);
+ logmsg->cm_fields['M'] = strdoop(x_msg);
+
+ MailboxName(roomname, &CC->usersupp, PAGELOGROOM);
+ create_room(roomname, 4, "", 0);
+ msgnum = CtdlSaveMsg(logmsg, "", roomname, MES_LOCAL);
+ if (strlen(config.c_logpages) > 0) {
+ create_room(config.c_logpages, 3, "", 0);
+ CtdlSaveMsgPointerInRoom(config.c_logpages, msgnum, 0);
+ }
+ while (sl != NULL) {
+ create_room(sl->roomname, 4, "", 0);
+ CtdlSaveMsgPointerInRoom(sl->roomname, msgnum, 0);
+ sptr = sl->next;
+ phree(sl);
+ sl = sptr;
+ }
+
+ CtdlFreeMessage(logmsg);
}
return (message_sent);