mirror of
https://github.com/ldmud/ldmud
synced 2026-08-12 14:26:05 -04:00
Driver hooks that accepted lfun closures before can now handle any type of closure. Also the H_CREATE_* hooks can now handle any type of closure.
28 lines
869 B
Text
28 lines
869 B
Text
SYNOPSIS
|
|
#include <sys/driver_hooks.h>
|
|
|
|
set_driver_hook(H_MSG_DISCARDED, value)
|
|
|
|
<value> being:
|
|
|
|
string <msg>
|
|
string <closure>(object user)
|
|
|
|
DESCRIPTION
|
|
Optional hook to specify a message or take other measures
|
|
when a message had to be discarded, because they could not
|
|
be delivered to the player <user>. If the hook is not set,
|
|
a standard message is used.
|
|
|
|
If the hook is a string, this text will be sent as soon as
|
|
possible to the player informing about the lost transmission.
|
|
|
|
If the hook is a closure, it is the function to be called
|
|
and the result is used as the message to be sent. Unbound
|
|
lambda closures are bound to the interactive <user> first.
|
|
|
|
HISTORY
|
|
Introduced in LDMud 3.3.719
|
|
|
|
SEE ALSO
|
|
hooks(C), configure_interactive(E)
|