blob: 2e3cac383eb9114ff09f9c9c1e447c3c18e4d9fe [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstra715ec202025-07-09 22:18:31 +02002 #include <commands.h>
MG Mud User88f12472016-06-24 23:31:02 +02003
Zesstra715ec202025-07-09 22:18:31 +02004 mixed * match_command(string command, object origin)
MG Mud User88f12472016-06-24 23:31:02 +02005
6DESCRIPTION
7 Take the command <command>, parse it, and return an array of all
8 matching actions added to <origin> (read: <origin> is the object
9 'issuing' the command).
10
11 Each entry in the result array is itself an array of:
12
13 string [CMDM_VERB]: The matched verb.
14 string [CMDM_ARG]: The argument string remaining, or 0 if none.
15 object [CMDM_OBJECT]: The object defining the action.
16 string [CMDM_FUN]: The name of the function to call in
17 CMDM_OBJECT, which may be static.
18
19 The efun is useful for both debugging, and for implementing your
20 own H_COMMAND handling.
21
22HISTORY
23 Introduced in LDMud 3.3.259.
24
25SEE ALSO
26 hooks(C), execute_command(E), command(E), notify_fail(E),
27 command_stack(E)