24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-02 21:17:12 +02:00

Update spec for get_room_pid

This commit is contained in:
Paweł Chmielowski 2020-12-18 12:36:31 +01:00
parent 1b7502acbc
commit 9f851008f6

View File

@ -1108,7 +1108,7 @@ format_room_option(OptionString, ValueString) ->
{Option, Value}. {Option, Value}.
%% @doc Get the Pid of an existing MUC room, or 'room_not_found'. %% @doc Get the Pid of an existing MUC room, or 'room_not_found'.
-spec get_room_pid(binary(), binary()) -> {ok, pid()} | room_not_found | invalid_service. -spec get_room_pid(binary(), binary()) -> pid() | room_not_found | invalid_service.
get_room_pid(Name, Service) -> get_room_pid(Name, Service) ->
try get_room_serverhost(Service) of try get_room_serverhost(Service) of
ServerHost -> ServerHost ->