changeset 31339:52dbbedb4908

Add switchboard users to the chat instead of adding always the same user as Elliot and Stu pointed out.
author masca@cpw.pidgin.im
date Thu, 04 Nov 2010 19:40:28 +0000
parents 3c1563a54785
children 58b013a3a2d4
files libpurple/protocols/msn/switchboard.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/switchboard.c	Thu Nov 04 18:23:41 2010 +0000
+++ b/libpurple/protocols/msn/switchboard.c	Thu Nov 04 19:40:28 2010 +0000
@@ -325,9 +325,8 @@
 			for (l = swboard->users; l != NULL; l = l->next)
 			{
 				const char *tmp_user;
-				user = l->data;
 
-				tmp_user = msnuser->passport;
+				tmp_user = ((MsnUser*)l->data)->passport;
 
 				purple_conv_chat_add_user(PURPLE_CONV_CHAT(swboard->conv),
 										tmp_user, NULL, PURPLE_CBFLAGS_NONE, TRUE);