[PATCH 4/4] Skip request when the user is offline.

Felipe Contreras felipe.contreras at gmail.com
Sun Jun 22 11:03:21 EDT 2008


---
 libpurple/protocols/msn/slp.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/libpurple/protocols/msn/slp.c b/libpurple/protocols/msn/slp.c
index fe863be..cdabc56 100644
--- a/libpurple/protocols/msn/slp.c
+++ b/libpurple/protocols/msn/slp.c
@@ -1105,6 +1105,13 @@ request_user_display(MsnUser *user)
 		return;
 	}
 
+	/* The user went offline. */
+	if (user->status == NULL)
+	{
+		skip_request(session->userlist);
+		return;
+	}
+
 	info = msn_object_get_sha1(obj);
 
 	if (g_ascii_strcasecmp(user->passport,
-- 
1.5.6




More information about the Devel mailing list