mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Fix unused vars warning
This commit is contained in:
parent
e7e8f2f63a
commit
864e113256
@ -300,7 +300,7 @@ get_password_with_authmodule(User, Server) ->
|
||||
|
||||
-spec is_user_exists(binary(), binary()) -> boolean().
|
||||
|
||||
is_user_exists(User, <<"">>) ->
|
||||
is_user_exists(_User, <<"">>) ->
|
||||
false;
|
||||
|
||||
is_user_exists(User, Server) ->
|
||||
|
@ -2349,7 +2349,7 @@ create_node(Host, ServerHost, Node, Owner, GivenType, Access, Configuration) ->
|
||||
{result, {NodeId, _SubsByDepth, default}} ->
|
||||
ejabberd_hooks:run(pubsub_create_node, ServerHost, [ServerHost, Host, Node, NodeId, NodeOptions]),
|
||||
{result, Reply};
|
||||
{result, {NodeId, _SubsByDepth, Result}} ->
|
||||
{result, {NodeId, _SubsByDepth, _Result}} ->
|
||||
ejabberd_hooks:run(pubsub_create_node, ServerHost, [ServerHost, Host, Node, NodeId, NodeOptions]),
|
||||
{result, Reply};
|
||||
Error ->
|
||||
|
@ -142,7 +142,7 @@ process([<<"change_password">>],
|
||||
{404, [], ErrorText}
|
||||
end;
|
||||
|
||||
process(Path, _Request) ->
|
||||
process(_Path, _Request) ->
|
||||
{404, [], "Not Found"}.
|
||||
|
||||
%%%----------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user