mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Typo
This commit is contained in:
parent
ee2b5be7f4
commit
88558453fb
@ -706,17 +706,17 @@ get_subscribed_rooms(ServerHost, Host, From) ->
|
|||||||
Mod = gen_mod:db_mod(LServer, ?MODULE),
|
Mod = gen_mod:db_mod(LServer, ?MODULE),
|
||||||
BareFrom = jid:remove_resource(From),
|
BareFrom = jid:remove_resource(From),
|
||||||
case Mod:get_subscribed_rooms(LServer, Host, BareFrom) of
|
case Mod:get_subscribed_rooms(LServer, Host, BareFrom) of
|
||||||
not_implmented ->
|
not_implemented ->
|
||||||
Rooms = get_online_rooms(ServerHost, Host),
|
Rooms = get_online_rooms(ServerHost, Host),
|
||||||
lists:flatmap(
|
lists:flatmap(
|
||||||
fun({Name, _, Pid}) ->
|
fun({Name, _, Pid}) ->
|
||||||
case p1_fsm:sync_send_all_state_event(Pid, {is_subscribed, BareFrom}) of
|
case p1_fsm:sync_send_all_state_event(Pid, {is_subscribed, BareFrom}) of
|
||||||
true -> [jid:make(Name, Host)];
|
true -> [jid:make(Name, Host)];
|
||||||
false -> []
|
false -> []
|
||||||
end;
|
end;
|
||||||
(_) ->
|
(_) ->
|
||||||
[]
|
[]
|
||||||
end, Rooms);
|
end, Rooms);
|
||||||
V ->
|
V ->
|
||||||
V
|
V
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user