about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-01-05 22:55:04 +0000
committerJames Booth <boothj5@gmail.com>2014-01-05 22:55:04 +0000
commit06ce95f68afe7b4454e50eb23e9891d6e5f30742 (patch)
treede4021a98c19da5e8e133326855f4516f38442bd /src/command
parentef920971e059ddbc34b6f4157d9a00ea89b9b85d (diff)
downloadprofani-tty-06ce95f68afe7b4454e50eb23e9891d6e5f30742.tar.gz
Refactored roster_change_name
Diffstat (limited to 'src/command')
-rw-r--r--src/command/commands.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 1bc53ed6..a301efd4 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -1110,7 +1110,10 @@ cmd_roster(gchar **args, struct cmd_help_t help)
             return TRUE;
         }
 
-        roster_change_name(jid, name);
+        const char *barejid = p_contact_barejid(contact);
+        roster_change_name(contact, name);
+        GSList *groups = p_contact_groups(contact);
+        roster_send_name_change(barejid, name, groups);
 
         if (name == NULL) {
             cons_show("Nickname for %s removed.", jid);