]> granicus.if.org Git - ejabberd/commitdiff
Support sql backend in mod_shared_roster commands (#1244)
authorBadlop <badlop@process-one.net>
Mon, 15 Aug 2016 13:53:35 +0000 (15:53 +0200)
committerBadlop <badlop@process-one.net>
Mon, 15 Aug 2016 13:53:35 +0000 (15:53 +0200)
src/mod_admin_extra.erl

index 8e9ea007f95d9a3762856ded5e7d14072b10f0a5..2bb436f31f4ec4a44fa22fe97875ac664a5534ff 100644 (file)
@@ -1315,11 +1315,11 @@ srg_create(Group, Host, Name, Description, Display) ->
     Opts = [{name, Name},
            {displayed_groups, DisplayList},
            {description, Description}],
-    {atomic, ok} = mod_shared_roster:create_group(Host, Group, Opts),
+    {atomic, _} = mod_shared_roster:create_group(Host, Group, Opts),
     ok.
 
 srg_delete(Group, Host) ->
-    {atomic, ok} = mod_shared_roster:delete_group(Host, Group),
+    {atomic, _} = mod_shared_roster:delete_group(Host, Group),
     ok.
 
 srg_list(Host) ->
@@ -1342,11 +1342,11 @@ srg_get_members(Group, Host) ->
      || {MUser, MServer} <- Members].
 
 srg_user_add(User, Host, Group, GroupHost) ->
-    {atomic, ok} = mod_shared_roster:add_user_to_group(GroupHost, {User, Host}, Group),
+    {atomic, _} = mod_shared_roster:add_user_to_group(GroupHost, {User, Host}, Group),
     ok.
 
 srg_user_del(User, Host, Group, GroupHost) ->
-    {atomic, ok} = mod_shared_roster:remove_user_from_group(GroupHost, {User, Host}, Group),
+    {atomic, _} = mod_shared_roster:remove_user_from_group(GroupHost, {User, Host}, Group),
     ok.