libpurple/protocols/gg/pubdir-prpl.c

branch
soc.2013.gobjectification.plugins
changeset 36856
f3a0cc1fe226
parent 36848
7fafdda14844
parent 34999
90850ff4b5eb
child 36926
d2c0c68a9816
--- a/libpurple/protocols/gg/pubdir-prpl.c	Wed Oct 02 23:12:55 2013 +0530
+++ b/libpurple/protocols/gg/pubdir-prpl.c	Thu Oct 03 02:15:31 2013 +0530
@@ -200,7 +200,7 @@
 	PurpleHttpRequest *req;
 	ggp_pubdir_request *request = _request;
 
-	if (!token || !PURPLE_IS_CONNECTION(gc))
+	if (!token || !PURPLE_CONNECTION_IS_VALID(gc))
 	{
 		request->cb(gc, -1, NULL, 0, request->user_data);
 		ggp_pubdir_request_free(request);
@@ -634,7 +634,7 @@
 	ggp_pubdir_request *request = _request;
 	gchar *query;
 
-	if (!token || !PURPLE_IS_CONNECTION(gc))
+	if (!token || !PURPLE_CONNECTION_IS_VALID(gc))
 	{
 		request->cb(gc, -1, NULL, 0, request->user_data);
 		ggp_pubdir_request_free(request);
@@ -911,7 +911,7 @@
 	gchar *name, *surname, *city;
 	uin_t uin = record->uin;
 
-	if (!token || !PURPLE_IS_CONNECTION(gc))
+	if (!token || !PURPLE_CONNECTION_IS_VALID(gc))
 	{
 		// TODO: notify about failure
 		ggp_pubdir_record_free(record, 1);

mercurial