Re: Wanting review_mgr help

Christian A. Ratliff (ratlifc@indikos.ctron.com)
Mon, 28 Nov 1994 08:43:22 -0500

On Fri, 25 Nov 94 15:25:39 EST Phillip Rzewski wrote:
> Some people from the poker community have asked to have the various poker
> notifications be added to discussion/session/detached review. Well, having
> looked at $lily_utils:event_broadcast I thought "that's easy!" but all
> I managed to do was corrupt my session review and get nothing to show up
> in the discussion review.
>
> I think what I want is some kind of formal documentation. Looking at code
> is a fine idea, but since it's not too heavily documented internally, I'd
> be spending a lot of time figuring out something I imagine someone has
> already written down somewhere. In fact, I coulda sworn I remember Ach
> sending $review_mgr docs through the list, but I stupidly didn't save it
> thinking it would be somehow crammed into the overflowing documentation bin
> at eclipse:/pub/lily/docs. :)
>
> So if someone could send along another copy or make it available, it would
> be much appreciated.
>
While I am sure that Matt will be sending along his volume on this topic
sometime very soon, the answer is actually very simple. You never should
actually touch the 'review_mgr' object, use $lily_utils:event_broadcase()
verb instead.

$lily_utils:event_broadcast(STR event, STR-LIST messages, OBJ-LIST recipients,
OBJ-LIST discussions[, OBJ player]);

ie

$lily_utils:event_broadcast("game", {"Poker> "+player.name+" bids ten bits"}, disc.members, {disc});

This will send the event 'game' and the message 'Poker> Bob bids ten bits' to every player in the discussion (except the sender), and enter it into their reviews and the discussion review.

christian

-----------
"He didn't look to be an official | Christian Ratliff <ratlifc@ctron.com>
type to go around dropping off | Sales Programmer/Analyst
lawnmowers..." | Cabletron Systems, Inc.
-Robin Aber | (MIME and NeXTmail accepted)