blob: 4a4b2efa8a9398983f9feb0992c2fc614e3a0aaa [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
2 int|string <name>(string cmd)
3
4DESCRIPTION
5 After set_modify_command(mob) was called for an interactive
6 object iob, all commands for that user will be passed to
7 mob-><name>(), and the return will then be checked for
8 actions. The actual name of the lfun to call is specified
9 by the H_MODIFY_COMMAND_FNAME hook - traditionally it's
10 'modify_command'.
11
12 If the result is a string, it is the new command to execute
13 instead of the given one. Note that it is not possible to
14 make several commands from one this way!
15 If the result is a non-zero number, the given command is to
16 be ignored. In case of the closure/lfun setting this may
17 mean that the closure/lfun already executed it.
18 If the result is 0, the originally given command is to be
19 used.
20
21HISTORY
22 In 3.2.1@109 the name of the lfun to call must be specified
23 using the H_MODIFY_COMMAND_FNAME driver hook.
24
25
26SEE ALSO
27 set_modify_command(E), hooks(C)