blob: f5f4d895dc8a010953292aebb970b63272084cf3 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstrad59c3892019-11-28 20:53:39 +01002 int find_input_to(object player, string fun)
3 int find_input_to(object player, closure fun)
Zesstra5481d492021-04-08 20:07:06 +02004 int find_input_to(object player, object|lwobject fun)
5 int find_input_to(object player, object|lwobject ob, string fun)
MG Mud User88f12472016-06-24 23:31:02 +02006
Zesstra715ec202025-07-09 22:18:31 +02007DESCRIPTION
8 Find the input_to most recently added to the interactive <player>
9 object matching the <fun> argument:
10 - <fun> is a string: the input_to functionname has to match
11 - <fun> is an object: the object the input_to function is bound to
12 has to match
13 - <fun> is a closure: the input_to closure has to match.
14 - <ob> and <fun> are given: both the object and the functionname have
15 to match
MG Mud User88f12472016-06-24 23:31:02 +020016
Zesstra715ec202025-07-09 22:18:31 +020017 Return -1 if not found, or the position in the input_to stack (0
18 being _least_ recently added input_to).
MG Mud User88f12472016-06-24 23:31:02 +020019
Zesstra715ec202025-07-09 22:18:31 +020020HISTORY
21 Introduced in LDMud 3.2.9.
MG Mud User88f12472016-06-24 23:31:02 +020022
Zesstra715ec202025-07-09 22:18:31 +020023SEE ALSO
MG Mud User88f12472016-06-24 23:31:02 +020024 input_to(E), input_to_info(E), remove_input_to(E),
25 query_input_pending(E)