Commit 89133b25 authored by Per Cederqvist's avatar Per Cederqvist

(async_i_am_on): Don't send info about secret conferences.

parent 907f2cfe
/*
* $Id: send-async.c,v 0.33 1999/07/05 06:59:17 ceder Exp $
* $Id: send-async.c,v 0.34 2000/09/05 19:55:00 ceder Exp $
* Copyright (C) 1991, 1993-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -34,7 +34,7 @@
#endif
static const char *
rcsid = "$Id: send-async.c,v 0.33 1999/07/05 06:59:17 ceder Exp $";
rcsid = "$Id: send-async.c,v 0.34 2000/09/05 19:55:00 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -114,6 +114,7 @@ async_i_am_on(Who_info info)
{
Connection *cptr;
Session_no i = 0;
Who_info filtered;
if (!param.send_async_messages)
return;
......@@ -122,13 +123,17 @@ async_i_am_on(Who_info info)
{
cptr = get_conn_by_number(i);
filtered = info;
filtered.working_conference = filter_conf_no(
info.working_conference, cptr);
switch(cptr->protocol)
{
case 0: /* Not yet logged on. */
break;
case 'A':
if (cptr->username_valid == TRUE)
prot_a_async_i_am_on(cptr, info);
prot_a_async_i_am_on(cptr, filtered);
break;
default:
restart_kom("async_i_am_on(): bad protocol.\n");
......
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