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

(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. * Copyright (C) 1991, 1993-1999 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#endif #endif
static const char * 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" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -114,6 +114,7 @@ async_i_am_on(Who_info info) ...@@ -114,6 +114,7 @@ async_i_am_on(Who_info info)
{ {
Connection *cptr; Connection *cptr;
Session_no i = 0; Session_no i = 0;
Who_info filtered;
if (!param.send_async_messages) if (!param.send_async_messages)
return; return;
...@@ -122,13 +123,17 @@ async_i_am_on(Who_info info) ...@@ -122,13 +123,17 @@ async_i_am_on(Who_info info)
{ {
cptr = get_conn_by_number(i); cptr = get_conn_by_number(i);
filtered = info;
filtered.working_conference = filter_conf_no(
info.working_conference, cptr);
switch(cptr->protocol) switch(cptr->protocol)
{ {
case 0: /* Not yet logged on. */ case 0: /* Not yet logged on. */
break; break;
case 'A': case 'A':
if (cptr->username_valid == TRUE) if (cptr->username_valid == TRUE)
prot_a_async_i_am_on(cptr, info); prot_a_async_i_am_on(cptr, filtered);
break; break;
default: default:
restart_kom("async_i_am_on(): bad protocol.\n"); restart_kom("async_i_am_on(): bad protocol.\n");
......
Supports Markdown
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