blob: 5dfb0d1e4543e5ce49446ac7729ca6e09a4b9967 [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
Zesstradaf2c672025-08-02 15:59:17 +020021 and the result is used as the message to be sent. Unbound
22 lambda closures are bound to the interactive <user> first.
MG Mud User88f12472016-06-24 23:31:02 +020023
24HISTORY
25 Introduced in LDMud 3.3.719
26
27SEE ALSO
28 hooks(C), configure_interactive(E)