blob: 07b4e0692c9a7145bc776c34a62bb7112185f5ae [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstra5481d492021-04-08 20:07:06 +02002 void catch_msg(mixed *|struct|mapping|object msg,
3 object|lwobject obj)
MG Mud User88f12472016-06-24 23:31:02 +02004
5DESCRIPTION
Zesstra7ea4a032019-11-26 20:11:40 +01006 When say(), tell_room() or tell_object() are used with a
MG Mud User88f12472016-06-24 23:31:02 +02007 non-string as message, the value will be passed to catch_msg()
8 in all living objects that can hear it, instead of writing to
Zesstra7ea4a032019-11-26 20:11:40 +01009 the user resp. sending to catch_tell(). This can be used to
MG Mud User88f12472016-06-24 23:31:02 +020010 implement communication protocols between livings. The second
11 argument denotes the object that has sent the message.
12
13HISTORY
14 LDMud 3.2.11 added tell_object() to the efuns calling this
15 lfun for symmetry reasons.
16 LDMud 3.3.686 added the use of a mapping/struct/object as message
17 value.
18
19SEE ALSO
20 say(E), tell_room(E), catch_tell(A)