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

Handle new possible result from ejabberd_config.add_option

This commit is contained in:
Paweł Chmielowski 2017-07-06 17:18:44 +02:00
parent 5ef542a638
commit 3b0eee785f

View File

@ -355,6 +355,8 @@ expose_commands(Commands) ->
Commands), Commands),
case ejabberd_config:add_option(commands, [{add_commands, Names}]) of case ejabberd_config:add_option(commands, [{add_commands, Names}]) of
ok ->
ok;
{aborted, Reason} -> {aborted, Reason} ->
{error, Reason}; {error, Reason};
{atomic, Result} -> {atomic, Result} ->