diff options
author | James Booth <boothj5@gmail.com> | 2014-01-05 22:55:04 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-01-05 22:55:04 +0000 |
commit | 06ce95f68afe7b4454e50eb23e9891d6e5f30742 (patch) | |
tree | de4021a98c19da5e8e133326855f4516f38442bd /src/command | |
parent | ef920971e059ddbc34b6f4157d9a00ea89b9b85d (diff) | |
download | profani-tty-06ce95f68afe7b4454e50eb23e9891d6e5f30742.tar.gz |
Refactored roster_change_name
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/commands.c | 5 |
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); |