blob: 7428ca2e7eedf7f15dc3f2017501f76a38ddf782 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstra715ec202025-07-09 22:18:31 +02002 object snoop(object snooper)
3 object snoop(object snooper, object snoopee)
MG Mud User88f12472016-06-24 23:31:02 +02004
Zesstra715ec202025-07-09 22:18:31 +02005DESCRIPTION
6 Starts a snoop from 'snooper' on 'snoopee', or if 'snoopee' is not
7 given, terminates any snoop from 'snooper'.
MG Mud User88f12472016-06-24 23:31:02 +02008
Zesstra715ec202025-07-09 22:18:31 +02009 Return <snoopee> on success, or 0 for a failure (including snooping
10 loops).
MG Mud User88f12472016-06-24 23:31:02 +020011
Zesstra715ec202025-07-09 22:18:31 +020012 The snoop is checked with the master object for validity. It
13 will also fail if a snoop would result in a recursive snoop
14 action.
MG Mud User88f12472016-06-24 23:31:02 +020015
Zesstra715ec202025-07-09 22:18:31 +020016 <snooper> can be an interactive player, or an object. If it is
17 an interactive player, the snooped text is prepended with a
18 '%' and send directly to the players connection. If <snooper>
19 is an object, the snooped text is sent in two calls to the
20 object's catch_tell() lfun: the first call passes just the
21 "%" (plus the prompt if the object changed it), the second the
22 actual text.
MG Mud User88f12472016-06-24 23:31:02 +020023
Zesstra715ec202025-07-09 22:18:31 +020024SEE ALSO
25 query_snoop(E), catch_tell(A)