]> granicus.if.org Git - ejabberd/commitdiff
Use ejabberd_config:add_option/2 instead of ejabberd_config:add_local_option/2
authorPeter Lemenkov <lemenkov@gmail.com>
Thu, 16 Feb 2017 17:47:47 +0000 (20:47 +0300)
committerPeter Lemenkov <lemenkov@gmail.com>
Thu, 16 Feb 2017 17:47:47 +0000 (20:47 +0300)
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
src/ejabberd_commands.erl

index 9491288f987cf6f0c19b8f5ee046d059ee3b8400..9bfa94dd602f453afb81e0f764acdea79fad3ede 100644 (file)
@@ -332,7 +332,7 @@ expose_commands(Commands) ->
                       end,
                       Commands),
 
-    case ejabberd_config:add_local_option(commands, [{add_commands, Names}]) of
+    case ejabberd_config:add_option(commands, [{add_commands, Names}]) of
         {aborted, Reason} ->
             {error, Reason};
         {atomic, Result} ->