diff src/protocols/msn/notification.c @ 6800:8f228a7d5076

[gaim-migrate @ 7340] Added what I have of MSNSLP in my tree. It's broken, and therefore disabled, but I need to get this out so I can do other stuff too, and have something to revert back to if I break something :) committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 10 Sep 2003 00:24:48 +0000
parents f5c483cdd1d8
children 1cfbb731aa1f
line wrap: on
line diff
--- a/src/protocols/msn/notification.c	Tue Sep 09 16:55:10 2003 +0000
+++ b/src/protocols/msn/notification.c	Wed Sep 10 00:24:48 2003 +0000
@@ -1033,7 +1033,10 @@
 iln_cmd(MsnServConn *servconn, const char *command, const char **params,
 		size_t param_count)
 {
-	GaimConnection *gc = servconn->session->account->gc;
+	MsnSession *session = servconn->session;
+	GaimConnection *gc = session->account->gc;
+	MsnUser *user;
+	MsnObject *msnobj;
 	int status = 0;
 	const char *state, *passport, *friend;
 	GaimBuddy *b;
@@ -1042,6 +1045,14 @@
 	passport = params[2];
 	friend   = msn_url_decode(params[3]);
 
+	if (session->protocol_ver >= 9 && param_count == 6)
+	{
+		user = msn_users_find_with_passport(session->users, passport);
+
+		msnobj = msn_object_new_from_string(msn_url_decode(params[5]));
+		msn_user_set_object(user, msnobj);
+	}
+
 	serv_got_alias(gc, (char *)passport, (char *)friend);
 
 	if ((b = gaim_find_buddy(gc->account, passport)) != NULL)