changeset 26287:f0ed5cd1073d

Hiding in novell
author Paul Aurich <paul@darkrain42.org>
date Mon, 23 Mar 2009 04:41:50 +0000
parents 16698063c352
children e9b77a8bfde4
files libpurple/protocols/novell/novell.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/novell/novell.c	Mon Mar 23 04:31:05 2009 +0000
+++ b/libpurple/protocols/novell/novell.c	Mon Mar 23 04:41:50 2009 +0000
@@ -2547,7 +2547,7 @@
 	if (gc == NULL || buddy == NULL || group == NULL)
 		return;
 
-	user = (NMUser *) gc->proto_data;
+	user = (NMUser *) purple_connection_get_protocol_data(gc);
 	if (user == NULL)
 		return;
 
@@ -2558,7 +2558,7 @@
 		return;
 
 	/* Don't re-add a buddy that is already on our contact list */
-	if (nm_find_user_record(user, buddy->name) != NULL)
+	if (nm_find_user_record(user, purple_buddy_get_name(buddy)) != NULL)
 		return;
 
 	contact = nm_create_contact();