libpurple/protocols/gg/roster.c

changeset 41091
fa2d6b0a4912
parent 40708
53a26c29d26c
child 42085
a76f1668564c
--- a/libpurple/protocols/gg/roster.c	Tue Oct 12 00:50:59 2021 -0500
+++ b/libpurple/protocols/gg/roster.c	Tue Oct 12 02:38:12 2021 -0500
@@ -996,17 +996,15 @@
 		gboolean succ = FALSE;
 		updates_it = g_list_next(updates_it);
 
-		if (change->type == GGP_ROSTER_CHANGE_CONTACT_UPDATE)
-			succ = ggp_roster_send_update_contact_update(gc,
-				change);
-		else if (change->type == GGP_ROSTER_CHANGE_CONTACT_REMOVE)
-			succ = ggp_roster_send_update_contact_remove(gc,
-				change);
-		else if (change->type == GGP_ROSTER_CHANGE_GROUP_RENAME)
+		if (change->type == GGP_ROSTER_CHANGE_CONTACT_UPDATE) {
+			succ = ggp_roster_send_update_contact_update(gc, change);
+		} else if (change->type == GGP_ROSTER_CHANGE_CONTACT_REMOVE) {
+			succ = ggp_roster_send_update_contact_remove(gc, change);
+		} else if (change->type == GGP_ROSTER_CHANGE_GROUP_RENAME) {
 			succ = ggp_roster_send_update_group_rename(gc, change);
-		else
-			purple_debug_fatal("gg", "ggp_roster_send_update: "
-				"not handled\n");
+		} else {
+			purple_debug_error("gg", "ggp_roster_send_update: not handled");
+		}
 		g_return_if_fail(succ);
 	}
 

mercurial