libpurple/protocols/novell/novell.c

changeset 31294
73607ab89c6f
parent 30138
cca9685df785
child 31344
a5ccecc17f1c
equal deleted inserted replaced
31293:169eeb43b52c 31294:73607ab89c6f
676 count = nm_conference_get_participant_count(conference); 676 count = nm_conference_get_participant_count(conference);
677 for (i = 0; i < count; i++) { 677 for (i = 0; i < count; i++) {
678 ur = nm_conference_get_participant(conference, i); 678 ur = nm_conference_get_participant(conference, i);
679 if (ur) { 679 if (ur) {
680 name = nm_user_record_get_display_id(ur); 680 name = nm_user_record_get_display_id(ur);
681 purple_conv_chat_add_user(PURPLE_CONV_CHAT(chat), name, NULL, 681 purple_conv_chat_add_user(PURPLE_CONV_CHAT(chat), name, NULL,
682 PURPLE_CBFLAGS_NONE, TRUE); 682 PURPLE_CBFLAGS_NONE, TRUE);
683 } 683 }
684 } 684 }
685 } 685 }
686 } 686 }
1542 } 1542 }
1543 nm_release_property(property); 1543 nm_release_property(property);
1544 } 1544 }
1545 } 1545 }
1546 1546
1547 purple_notify_userinfo(gc, nm_user_record_get_userid(user_record), 1547 purple_notify_userinfo(gc, nm_user_record_get_userid(user_record),
1548 user_info, NULL, NULL); 1548 user_info, NULL, NULL);
1549 purple_notify_user_info_destroy(user_info); 1549 purple_notify_user_info_destroy(user_info);
1550 } 1550 }
1551 1551
1552 /* Send a join conference, the first item in the parms list is the 1552 /* Send a join conference, the first item in the parms list is the
1963 if (chat) { 1963 if (chat) {
1964 1964
1965 nm_conference_set_data(conference, (gpointer) chat); 1965 nm_conference_set_data(conference, (gpointer) chat);
1966 1966
1967 name = nm_user_record_get_display_id(ur); 1967 name = nm_user_record_get_display_id(ur);
1968 purple_conv_chat_add_user(PURPLE_CONV_CHAT(chat), name, NULL, 1968 purple_conv_chat_add_user(PURPLE_CONV_CHAT(chat), name, NULL,
1969 PURPLE_CBFLAGS_NONE, TRUE); 1969 PURPLE_CBFLAGS_NONE, TRUE);
1970 1970
1971 } 1971 }
1972 } 1972 }
1973 } 1973 }
1975 if (chat != NULL) { 1975 if (chat != NULL) {
1976 ur = nm_find_user_record(user, nm_event_get_source(event)); 1976 ur = nm_find_user_record(user, nm_event_get_source(event));
1977 if (ur) { 1977 if (ur) {
1978 name = nm_user_record_get_display_id(ur); 1978 name = nm_user_record_get_display_id(ur);
1979 if (!purple_conv_chat_find_user(PURPLE_CONV_CHAT(chat), name)) { 1979 if (!purple_conv_chat_find_user(PURPLE_CONV_CHAT(chat), name)) {
1980 purple_conv_chat_add_user(PURPLE_CONV_CHAT(chat), name, NULL, 1980 purple_conv_chat_add_user(PURPLE_CONV_CHAT(chat), name, NULL,
1981 PURPLE_CBFLAGS_NONE, TRUE); 1981 PURPLE_CBFLAGS_NONE, TRUE);
1982 } 1982 }
1983 } 1983 }
1984 } 1984 }
1985 } 1985 }
2858 status_str = _("Unknown"); 2858 status_str = _("Unknown");
2859 break; 2859 break;
2860 } 2860 }
2861 2861
2862 purple_notify_user_info_add_pair(user_info, _("Status"), status_str); 2862 purple_notify_user_info_add_pair(user_info, _("Status"), status_str);
2863 2863
2864 if (text) 2864 if (text)
2865 purple_notify_user_info_add_pair(user_info, _("Message"), text); 2865 purple_notify_user_info_add_pair(user_info, _("Message"), text);
2866 } 2866 }
2867 } 2867 }
2868 } 2868 }

mercurial