mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-03 18:02:28 +01:00
Merge pull request #721 from oxpa/muc_admin
get_room_options will not crash in case of query for a non-existent room
This commit is contained in:
commit
3ed75890cb
@ -816,8 +816,10 @@ change_option(Option, Value, Config) ->
|
|||||||
%%----------------------------
|
%%----------------------------
|
||||||
|
|
||||||
get_room_options(Name, Service) ->
|
get_room_options(Name, Service) ->
|
||||||
Pid = get_room_pid(Name, Service),
|
case get_room_pid(Name, Service) of
|
||||||
get_room_options(Pid).
|
room_not_found -> [];
|
||||||
|
Pid -> get_room_options(Pid)
|
||||||
|
end.
|
||||||
|
|
||||||
get_room_options(Pid) ->
|
get_room_options(Pid) ->
|
||||||
Config = get_room_config(Pid),
|
Config = get_room_config(Pid),
|
||||||
|
Loading…
Reference in New Issue
Block a user