/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.
--- 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));