mirror of
https://github.com/processone/ejabberd.git
synced 2024-08-30 13:11:55 +02:00
14 lines
371 B
Elixir
14 lines
371 B
Elixir
defmodule Ejabberd.Hooks do
|
|
|
|
# Generic hook setting features
|
|
def add(hook_name, host, module, function, priority) do
|
|
:ejabberd_hooks.add(hook_name, host, module, function, priority)
|
|
end
|
|
|
|
# Should be named 'removed'
|
|
def delete(hook_name, host, module, function, priority) do
|
|
:ejabberd_hooks.delete(hook_name, host, module, function, priority)
|
|
end
|
|
|
|
end
|