blob: 5360dfe2f06bccb3e772f18b229a3326340b8f1c [file] [log] [blame]
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. Lambda
closures are bound to the interactive <user> first.
HISTORY
Introduced in LDMud 3.3.719
SEE ALSO
hooks(C), configure_interactive(E)