Commit b395fc89 authored by David Byers's avatar David Byers
Browse files

(send_message): Force message to user if it has an explicit letterbox...

(send_message): Force message to user if it has an explicit letterbox recipient or the sender is an administrator
parent f8bc8f5b
/*
* $Id: admin.c,v 0.19 1996/06/09 13:54:07 byers Exp $
* $Id: admin.c,v 0.20 1996/06/14 15:32:47 byers Exp $
* Copyright (C) 1991, 1993, 1994, 1995 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -28,7 +28,7 @@
* Administrative calls.
*/
static char *rcsid = "$Id: admin.c,v 0.19 1996/06/09 13:54:07 byers Exp $";
static char *rcsid = "$Id: admin.c,v 0.20 1996/06/14 15:32:47 byers Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -227,7 +227,11 @@ send_message (Conf_no recipient,
}
if (recipient == 0 || cached_get_conf_type(recipient).letter_box == 1)
return async_send_message(recipient, ACTPERS, message);
return async_send_message(recipient,
ACTPERS,
message,
( recipient != 0 ||
ENA(admin, 1) ));
else
{
/* The recipient is a conference. Send the message to all
......@@ -239,7 +243,10 @@ send_message (Conf_no recipient,
for (ix = 0; ix < end; ix++)
{
if (async_send_group_message(conf_c->members.members[ix].member,
recipient, ACTPERS, message) == OK)
recipient,
ACTPERS,
message,
ENA(admin, 1)) == OK)
{
retval = OK;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment