changeset 2030:0771e130f79d

/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.
author Mikael Berthe <mikael@lilotux.net>
date Thu, 11 Oct 2012 23:10:15 +0200
parents ca40744c03be
children 2b13be73351d
files mcabber/mcabber/commands.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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));