Commit fbbaf2c7 authored by Per Cederqvist's avatar Per Cederqvist

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

(who_is_on_ident): Likewise.
(who_is_on_dynamic): Likewise.
(get_session_info): Likewise.
(get_session_info_ident): Likewise.
(who_is_on_old): Likewise.
parent 89133b25
/*
* $Id: session.c,v 0.54 1999/07/05 06:58:57 ceder Exp $
* $Id: session.c,v 0.55 2000/09/05 19:56:16 ceder Exp $
* Copyright (C) 1991-1994, 1996-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -34,7 +34,7 @@
#endif
static const char *
rcsid = "$Id: session.c,v 0.54 1999/07/05 06:58:57 ceder Exp $";
rcsid = "$Id: session.c,v 0.55 2000/09/05 19:56:16 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -478,7 +478,8 @@ who_is_on( Who_info_list *result )
prot_a_output_who_info_list() in prot-a-output.c. */
create_oldstyle_username(&result->info[i].username, cptr);
result->info[ i ].working_conference = cptr->cwc;
result->info[ i ].working_conference = filter_conf_no(
cptr->cwc, active_connection);
result->info[ i ].session_no = cptr->session_no;
++i;
}
......@@ -534,7 +535,8 @@ who_is_on_ident( Who_info_ident_list *result )
result->info[i].username = cptr->username;
result->info[i].hostname = cptr->hostname;
result->info[i].ident_user = cptr->ident_user;
result->info[i].working_conference = cptr->cwc;
result->info[i].working_conference = filter_conf_no(
cptr->cwc, active_connection);
result->info[i].session_no = cptr->session_no;
++i;
}
......@@ -611,7 +613,8 @@ who_is_on_dynamic(int want_visible,
init_dynamic_session_info(&result->sessions[i]);
result->sessions[i].session = cptr->session_no;
result->sessions[i].person = cptr->pers_no;
result->sessions[i].working_conference = cptr->cwc;
result->sessions[i].working_conference = filter_conf_no(
cptr->cwc, active_connection);
result->sessions[i].idle_time = ldifftime(current_time,
cptr->active_time);
......@@ -653,7 +656,8 @@ get_session_info (Session_no session_no,
init_session_info(result);
result->person = cptr->pers_no;
result->what_am_i_doing = cptr->what_am_i_doing;
result->working_conference = cptr->cwc;
result->working_conference = filter_conf_no(cptr->cwc,
active_connection);
result->session = cptr->session_no;
result->connection_time = cptr->session_start;
result->idle_time = ldifftime(current_time, cptr->active_time);
......@@ -718,7 +722,8 @@ get_session_info_ident (Session_no session_no,
init_session_info_ident(result);
result->person = cptr->pers_no;
result->what_am_i_doing = cptr->what_am_i_doing;
result->working_conference = cptr->cwc;
result->working_conference = filter_conf_no(cptr->cwc,
active_connection);
result->session = cptr->session_no;
result->connection_time = cptr->session_start;
result->idle_time = ldifftime(current_time, cptr->active_time);
......@@ -820,7 +825,8 @@ who_is_on_old( Who_info_list_old *result )
init_who_info_old(&result->info[ i ]);
result->info[ i ].person = cptr->pers_no;
result->info[ i ].what_am_i_doing = cptr->what_am_i_doing;
result->info[ i ].working_conference = cptr->cwc;
result->info[i].working_conference = filter_conf_no(
cptr->cwc, active_connection);
++i;
}
session = traverse_connections(session);
......
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