【发布时间】:2016-05-23 14:55:52
【问题描述】:
ejabberd_hooks add 函数将 Seq 作为最终参数。它的作用是什么?
https://www.process-one.net/docs/ejabberd/devdoc/trunk/ejabberd_hooks.html#add-5
add(Hook, Host, Module, Function, Seq) -> any()
【问题讨论】:
标签: ejabberd
ejabberd_hooks add 函数将 Seq 作为最终参数。它的作用是什么?
https://www.process-one.net/docs/ejabberd/devdoc/trunk/ejabberd_hooks.html#add-5
add(Hook, Host, Module, Function, Seq) -> any()
【问题讨论】:
标签: ejabberd
ejabberd_hooks:add(Hook, Host, Module, Function, Priority)
优先级是挂钩等级,用于确定挂钩的运行顺序(当为同一事件定义多个挂钩时)。如果你有钩子之间的依赖关系,你可以使用它。
查看官方文档here。
【讨论】: