]> granicus.if.org Git - ejabberd/commitdiff
Fix type convertion bug injected by 4ccc40b (#1229) 16.08
authorChristophe Romain <christophe.romain@process-one.net>
Thu, 4 Aug 2016 07:49:23 +0000 (09:49 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Thu, 4 Aug 2016 07:49:23 +0000 (09:49 +0200)
src/mod_admin_extra.erl

index c23fd7818a85e45563173d02e190fd59216d4126..8e9ea007f95d9a3762856ded5e7d14072b10f0a5 100644 (file)
@@ -1171,8 +1171,8 @@ subscribe_roster({Name, Server, Group, Nick}, [{Name, Server, _, _} | Roster]) -
     subscribe_roster({Name, Server, Group, Nick}, Roster);
 %% Subscribe Name2 to Name1
 subscribe_roster({Name1, Server1, Group1, Nick1}, [{Name2, Server2, Group2, Nick2} | Roster]) ->
-    subscribe(Name1, Server1, list_to_binary(Name2), list_to_binary(Server2),
-       list_to_binary(Nick2), list_to_binary(Group2), <<"both">>, []),
+    subscribe(Name1, Server1, iolist_to_binary(Name2), iolist_to_binary(Server2),
+       iolist_to_binary(Nick2), iolist_to_binary(Group2), <<"both">>, []),
     subscribe_roster({Name1, Server1, Group1, Nick1}, Roster).
 
 push_alltoall(S, G) ->