Door Games Unlimited

Welcome, Guest.


Subject: system.compiled_when prop Date: Mon May 20 2013 22:01:00
From: Nightfox To: Digital Man

  Re: system.compiled_when property
  By: Digital Man to Nightfox on Mon May 20 2013 12:43:32

 DM> Rather than basing your decision to use bbs.msg_number on the build date,
 DM> why not check to see if it's non-zero? A zero message number is never
 DM> valid. Just fall back to the previous behavior if the message number is
 DM> zero.

I was going to do that, but then I realized that when I use my message lister
to read and reply to a message (rather than using one of Synchronet's built-in
ways to read a message), bbs.msg_number is 0 in that case.  I've tried having
my message lister set bbs.msg_number to the number property in the message
header, but that doesn't actually set bbs.msg_number.  I suppose the properties
of the bbs object are read-only, and I can understand why.  My solution was to
have my message lister write its own drop file containing the message
offset/number and to have SlyEdit read that file if it exists.  Currently,
both SlyEdit and my message lister check the Synchronet version and build
date to decide whether to use the message number or offset, and that's working
for now.  It would be nice if there was a more elegant way to do it though.

Nightfox

---
 ■ Synchronet ■ Digital Distortion BBS - digitaldistortionbbs.com

Previous Message       Next Message
In Reply To: system.compiled_when prop (Digital Man)