MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | SYNOPSIS |
| 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 | |
| 11 | DESCRIPTION |
| 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 | |
| 24 | HISTORY |
| 25 | Introduced in LDMud 3.3.719 |
| 26 | |
| 27 | SEE ALSO |
| 28 | hooks(C), configure_interactive(E) |