finch/gntroomlist.c

branch
soc.2013.gobjectification.plugins
changeset 36632
1f0650e7b1b5
parent 36623
caaadef03507
child 36690
45425605f156
--- a/finch/gntroomlist.c	Sun Sep 01 03:17:23 2013 +0530
+++ b/finch/gntroomlist.c	Sun Sep 01 03:53:25 2013 +0530
@@ -120,7 +120,7 @@
 
 	protocol = purple_connection_get_protocol(gc);
 
-	if(protocol != NULL && protocol->roomlist_room_serialize)
+	if(protocol != NULL && PURPLE_PROTOCOL_IMPLEMENTS(protocol, roomlist_room_serialize))
 		name = purple_protocol_iface_roomlist_room_serialize(protocol, room);
 	else
 		name = g_strdup(purple_roomlist_room_get_name(room));
@@ -242,7 +242,7 @@
 
 		protocol = purple_connection_get_protocol(gc);
 		if (PURPLE_CONNECTION_IS_CONNECTED(gc) &&
-		        protocol->roomlist_get_list != NULL) {
+		        PURPLE_PROTOCOL_IMPLEMENTS(protocol, roomlist_get_list)) {
 			PurpleAccount *account = purple_connection_get_account(gc);
 			char *text = g_strdup_printf("%s (%s)",
 					purple_account_get_username(account),

mercurial