src/protocols/novell/nmevent.c

changeset 8933
0f1e8160581d
parent 8874
6dda85680808
child 9268
196cbf2cae4c
equal deleted inserted replaced
8932:4b122cbfa7df 8933:0f1e8160581d
1 /* 1 /*
2 * nmevent.c 2 * nmevent.c
3 * 3 *
4 * Copyright © 2004 Unpublished Work of Novell, Inc. All Rights Reserved. 4 * Copyright (c) 2004 Novell, Inc. All Rights Reserved.
5 * 5 *
6 * THIS WORK IS AN UNPUBLISHED WORK OF NOVELL, INC. NO PART OF THIS WORK MAY BE 6 * This program is free software; you can redistribute it and/or modify
7 * USED, PRACTICED, PERFORMED, COPIED, DISTRIBUTED, REVISED, MODIFIED, 7 * it under the terms of the GNU General Public License as published by
8 * TRANSLATED, ABRIDGED, CONDENSED, EXPANDED, COLLECTED, COMPILED, LINKED, 8 * the Free Software Foundation; version 2 of the License.
9 * RECAST, TRANSFORMED OR ADAPTED WITHOUT THE PRIOR WRITTEN CONSENT OF NOVELL,
10 * INC. ANY USE OR EXPLOITATION OF THIS WORK WITHOUT AUTHORIZATION COULD SUBJECT
11 * THE PERPETRATOR TO CRIMINAL AND CIVIL LIABILITY.
12 * 9 *
13 * AS BETWEEN [GAIM] AND NOVELL, NOVELL GRANTS [GAIM] THE RIGHT TO REPUBLISH 10 * This program is distributed in the hope that it will be useful,
14 * THIS WORK UNDER THE GPL (GNU GENERAL PUBLIC LICENSE) WITH ALL RIGHTS AND 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * LICENSES THEREUNDER. IF YOU HAVE RECEIVED THIS WORK DIRECTLY OR INDIRECTLY 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * FROM [GAIM] AS PART OF SUCH A REPUBLICATION, YOU HAVE ALL RIGHTS AND LICENSES 13 * GNU General Public License for more details.
17 * GRANTED BY [GAIM] UNDER THE GPL. IN CONNECTION WITH SUCH A REPUBLICATION, IF 14 *
18 * ANYTHING IN THIS NOTICE CONFLICTS WITH THE TERMS OF THE GPL, SUCH TERMS 15 * You should have received a copy of the GNU General Public License
19 * PREVAIL. 16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 * 18 *
21 */ 19 */
22 20
23 #include <glib.h> 21 #include <glib.h>
24 #include <string.h> 22 #include <string.h>
589 nm_event_set_conference(event, conference); 587 nm_event_set_conference(event, conference);
590 588
591 /* Add the new user to the participants list */ 589 /* Add the new user to the participants list */
592 user_record = nm_find_user_record(user, nm_event_get_source(event)); 590 user_record = nm_find_user_record(user, nm_event_get_source(event));
593 if (user_record) { 591 if (user_record) {
592 nm_conference_remove_participant(conference,
593 nm_user_record_get_dn(user_record));
594 nm_conference_add_participant(conference, user_record); 594 nm_conference_add_participant(conference, user_record);
595 } else { 595 } else {
596 596
597 /* Need to go to the server to get details for the user */ 597 /* Need to go to the server to get details for the user */
598 rc = nm_send_get_details(user, nm_event_get_source(event), 598 rc = nm_send_get_details(user, nm_event_get_source(event),

mercurial