blob: 5360dfe2f06bccb3e772f18b229a3326340b8f1c [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
2 #include <sys/driver_hooks.h>
3
4 set_driver_hook(H_MSG_DISCARDED, value)
5
6 <value> being:
7
8 string <msg>
9 string <closure>(object user)
10
11DESCRIPTION
12 Optional hook to specify a message or take other measures
13 when a message had to be discarded, because they could not
14 be delivered to the player <user>. If the hook is not set,
15 a standard message is used.
16
17 If the hook is a string, this text will be sent as soon as
18 possible to the player informing about the lost transmission.
19
20 If the hook is a closure, it is the function to be called
21 and the result is used as the message to be sent. Lambda
22 closures are bound to the interactive <user> first.
23
24HISTORY
25 Introduced in LDMud 3.3.719
26
27SEE ALSO
28 hooks(C), configure_interactive(E)