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 23:08:11 +0000
committerJames Booth <boothj5@gmail.com>2014-01-05 23:08:11 +0000
commit1d716e48adf7dc6a2639131450c1ca74d48ea105 (patch)
tree73266dd58aad8a343e58d035b6a370613bca801a /src/command
parent06ce95f68afe7b4454e50eb23e9891d6e5f30742 (diff)
downloadprofani-tty-1d716e48adf7dc6a2639131450c1ca74d48ea105.tar.gz
Removed roster_list dependency on xmpp module
Diffstat (limited to 'src/command')
-rw-r--r--src/command/commands.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index a301efd4..57a6b151 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -1009,7 +1009,8 @@ cmd_group(gchar **args, struct cmd_help_t help)
             return TRUE;
         }
 
-        roster_add_to_group(group, barejid);
+        roster_add_to_group(group, pcontact);
+        roster_send_add_to_group(group, pcontact);
 
         return TRUE;
     }
@@ -1035,7 +1036,8 @@ cmd_group(gchar **args, struct cmd_help_t help)
             return TRUE;
         }
 
-        roster_remove_from_group(group, barejid);
+        roster_remove_from_group(group, pcontact);
+        roster_send_remove_from_group(group, pcontact);
 
         return TRUE;
     }