Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
/* /*
* $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. * Copyright (C) 1991, 1993, 1994, 1995 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* Administrative calls. * 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" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -227,7 +227,11 @@ send_message (Conf_no recipient, ...@@ -227,7 +227,11 @@ send_message (Conf_no recipient,
} }
if (recipient == 0 || cached_get_conf_type(recipient).letter_box == 1) 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 else
{ {
/* The recipient is a conference. Send the message to all /* The recipient is a conference. Send the message to all
...@@ -239,7 +243,10 @@ send_message (Conf_no recipient, ...@@ -239,7 +243,10 @@ send_message (Conf_no recipient,
for (ix = 0; ix < end; ix++) for (ix = 0; ix < end; ix++)
{ {
if (async_send_group_message(conf_c->members.members[ix].member, if (async_send_group_message(conf_c->members.members[ix].member,
recipient, ACTPERS, message) == OK) recipient,
ACTPERS,
message,
ENA(admin, 1)) == OK)
{ {
retval = OK; retval = OK;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment