diff src/protocols/msn/userlist.c @ 19800:da3f8f7ec3ce

[gaim-migrate @ 16737] can send Message to Yahoo Messenger can receive the Yahoo Message, Need to post it to the conversation committed by Ma Yuan<mayuan2006@gmail.com> committer: Ethan Blanton <elb@pidgin.im>
author Ma Yuan <mayuan2006@gmail.com>
date Sun, 13 Aug 2006 16:01:52 +0000
parents 88b0c434259a
children da1075366756
line wrap: on
line diff
--- a/src/protocols/msn/userlist.c	Sun Aug 13 06:09:48 2006 +0000
+++ b/src/protocols/msn/userlist.c	Sun Aug 13 16:01:52 2006 +0000
@@ -448,6 +448,19 @@
 	g_free(userlist);
 }
 
+MsnUser *
+msn_userlist_find_add_user(MsnUserList *userlist,const char *passport,const char *userName)
+{
+	MsnUser *user;
+
+	user = msn_userlist_find_user(userlist, passport);
+	if (user == NULL){
+		user = msn_user_new(userlist, passport, userName);
+		msn_userlist_add_user(userlist, user);
+	}
+	return user;
+}
+
 void
 msn_userlist_add_user(MsnUserList *userlist, MsnUser *user)
 {