-spec is_user_exists(binary(), binary()) -> boolean().
-is_user_exists(User, <<"">>) ->
+is_user_exists(_User, <<"">>) ->
false;
is_user_exists(User, Server) ->
{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 ->
{404, [], ErrorText}
end;
-process(Path, _Request) ->
+process(_Path, _Request) ->
{404, [], "Not Found"}.
%%%----------------------------------------------------------------------