diff --git a/src/server/send-async.c b/src/server/send-async.c index 77b4edf0c1b28b35a9817cd9885d09837fa04b60..96ef9221d79d658161f63473fb71175f433e615d 100644 --- a/src/server/send-async.c +++ b/src/server/send-async.c @@ -1,5 +1,5 @@ /* - * $Id: send-async.c,v 0.9 1993/10/18 12:30:47 ceder Exp $ + * $Id: send-async.c,v 0.10 1994/01/12 01:46:47 ceder Exp $ * Copyright (C) 1991 Lysator Academic Computer Association. * * This file is part of the LysKOM server. @@ -28,7 +28,7 @@ * Written by Per Cederqvist 1990-07-22--23 */ -static char *rcsid = "$Id: send-async.c,v 0.9 1993/10/18 12:30:47 ceder Exp $"; +static char *rcsid = "$Id: send-async.c,v 0.10 1994/01/12 01:46:47 ceder Exp $"; #include "rcs.h" USE(rcsid); @@ -50,8 +50,7 @@ USE(rcsid); #include "prot-a-send-async.h" #include "lyskomd.h" #include "log.h" - -extern Bool send_async_messages; +#include "param.h" void @@ -59,7 +58,7 @@ async_new_text(struct connection *cptr, Text_no text_no, Text_stat *text_s) { - if (!send_async_messages) + if (!param.send_async_messages) return; switch(cptr->protocol) @@ -84,7 +83,7 @@ async_i_am_on(Who_info info) Connection *cptr; Session_no i = 0; - if (!send_async_messages) + if (!param.send_async_messages) return; while ( (i = traverse_connections(i)) != 0 ) @@ -112,7 +111,7 @@ async_i_am_off(Pers_no pers_no) Connection *cptr; Session_no i = 0; - if (!send_async_messages) + if (!param.send_async_messages) return; while ( (i = traverse_connections(i)) != 0 ) @@ -146,7 +145,7 @@ async_logout(Pers_no pers_no, Connection *cptr; Session_no i = 0; - if (!send_async_messages) + if (!param.send_async_messages) return; while ( (i = traverse_connections(i)) != 0) @@ -183,7 +182,7 @@ async_new_name(Conf_no conf_no, Connection *cptr; Session_no i = 0; - if (!send_async_messages) + if (!param.send_async_messages) return; while ( (i = traverse_connections(i)) != 0) @@ -227,7 +226,7 @@ async_sync_db(void) Connection *cptr; Session_no i = 0; - if (!send_async_messages) + if (!param.send_async_messages) return; while ( (i = traverse_connections(i)) != 0 ) @@ -259,7 +258,7 @@ extern void async_forced_leave_conf (struct connection *cptr, Conf_no conf_no) { - if (!send_async_messages) + if (!param.send_async_messages) return; switch(cptr->protocol) @@ -282,7 +281,7 @@ async_login(Pers_no pers_no, Connection *cptr; Session_no i = 0; - if (!send_async_messages) + if (!param.send_async_messages) return; while ( (i = traverse_connections(i)) != 0) @@ -317,7 +316,7 @@ async_broadcast(Pers_no pers_no, Connection *cptr; Session_no i = 0; - if (!send_async_messages) + if (!param.send_async_messages) return; while ( (i = traverse_connections(i)) != 0) @@ -352,7 +351,7 @@ async_rejected_connection(void) Connection *cptr; Session_no i = 0; - if (!send_async_messages) + if (!param.send_async_messages) return; while ( (i = traverse_connections(i)) != 0) @@ -393,7 +392,7 @@ async_send_message(Pers_no recipient, Session_no i = 0; Success retval = FAILURE; - if (!send_async_messages) + if (!param.send_async_messages) return FAILURE; while ( (i = traverse_connections(i)) != 0)