Описание тега ejabberd-hooks
NoneEjabberd provides an event mechanism. Each module can subscribe to events and a hook in the module code is called when the event occurs.
ejabberd provides an event mechanism. Each module can subscribe to events and a hook in the module code is called when the event occurs.
When ejabberd is processing an arbitrary event (incoming IQ, outgoing presence, configuration change, etc), it is convenient to consider some of them notable. In order for someone to be notified of such events, ejabberd executes "hooks". A hook is represented by a unique name. All functions associated with the hook's name will be called in some specified order.