Chapter 3: Condition Reference
99
im.message.text=
Tests if the message text contains the specified text or pattern.
Note: The .regex version of this test is limited to the first 8K of the message. The .substring
version of the test does not have this restriction.
Syntax
im.message.text.substring[.case_sensitive]=substring
im.message.text.regex[.case_sensitive]=expr
where:
substring . . . substringSpecifies a substring match of the message text.
regex . . . ”expr”Takes a regular expression.
Layer and Transaction Notes
•Use in <Proxy> and <Exception> layers.
Applies to instant messaging transactions.
See Also
•Actions:
append(), im.alert( ), set( )
Conditions: im.buddy_id=, im.chat_room.conference=, im.chat_room.id=,
im.chat_room.invite_only=, im.chat_room.type=, im.chat_room.member=,
im.chat_room.voice_enabled=, im.file.extension=, im.file.name=, im.file.path=,
im.file.size=, im.message.route=, im.message.size=, im.message.type=, im.method=,
im.user_id=
•Properties: im.strip_attachments( )