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
1 changed files with 2 additions and 0 deletions

View File

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