# HG changeset patch # User Mikael Berthe # Date 1349989815 -7200 # Node ID 0771e130f79d48144ae366a599ee14228c73d6ec # Parent ca40744c03be80eb289c88b8ce3a8d6fd756f394 /rename: Do not send empty group attribute when the contact has no group Thanks to nem for the report and Hermitifier for looking into it. diff -r ca40744c03be -r 0771e130f79d mcabber/mcabber/commands.c --- a/mcabber/mcabber/commands.c Thu Oct 11 22:46:41 2012 +0200 +++ b/mcabber/mcabber/commands.c Thu Oct 11 23:10:15 2012 +0200 @@ -2187,7 +2187,8 @@ /* We do not rename the buddy right now because the server could reject * the request. Let's wait for the server answer. */ - xmpp_updatebuddy(bjid, (del_name ? NULL : name_utf8), group); + xmpp_updatebuddy(bjid, (del_name ? NULL : name_utf8), + group && *group ? group : NULL); } else { // This is a local item, we rename it without adding to roster. buddy_setname(bud, (del_name ? (char*)bjid : name_utf8));