Changeset 01d56c0
- Timestamp:
- 2016-10-08T06:39:05Z (8 years ago)
- Branches:
- master
- Children:
- 9698fc0
- Parents:
- 58d285a
- git-author:
- dequis <dx@…> (08-10-16 06:32:08)
- git-committer:
- dequis <dx@…> (08-10-16 06:39:05)
- Location:
- protocols/purple
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/purple/bpurple.h
r58d285a r01d56c0 15 15 }; 16 16 17 struct purple_roomlist_data18 {19 GSList *chats;20 gint topic;21 };22 23 17 #endif /* !BPURPLE_H */ -
protocols/purple/purple.c
r58d285a r01d56c0 54 54 }; 55 55 56 struct purple_roomlist_data { 57 GSList *chats; 58 gint topic; 59 gboolean initialized; 60 }; 61 62 56 63 struct im_connection *purple_ic_by_pa(PurpleAccount *pa) 57 64 { … … 771 778 PurpleRoomlist *list; 772 779 struct purple_data *pd = ic->proto_data; 780 PurplePlugin *prpl = purple_plugins_find_with_id(pd->account->protocol_id); 781 PurplePluginProtocolInfo *pi = prpl->info->extra_info; 782 783 if (!pi || !pi->roomlist_get_list) { 784 imcb_log(ic, "Room listing unsupported by this purple plugin"); 785 return; 786 } 773 787 774 788 list = purple_roomlist_get_list(pd->account->gc); 775 789 776 790 if (list) { 791 struct purple_roomlist_data *rld = list->ui_data; 792 rld->initialized = TRUE; 793 777 794 purple_roomlist_ref(list); 778 } else {779 imcb_log(ic, "Room listing unsupported by this purple plugin");780 795 } 781 796 } … … 1382 1397 struct purple_roomlist_data *rld = list->ui_data; 1383 1398 1384 if (in_progress ) {1399 if (in_progress || !rld) { 1385 1400 return; 1386 1401 } … … 1393 1408 1394 1409 bee_chat_list_finish(ic); 1395 purple_roomlist_unref(list); 1410 1411 if (rld->initialized) { 1412 purple_roomlist_unref(list); 1413 } 1396 1414 } 1397 1415
Note: See TracChangeset
for help on using the changeset viewer.