FILTER
- Category
- Mod related
- Added in
- v0.10.4
Indicate that this chat message should be filtered and terminate
Example
// Use ifcontains to check for chat-messages and filter ifcontains turns out true.
// Filters the message 'Hello' in the chat.
ifcontains(%CHAT%,"Hello");
filter;
endif;
// Use ifmatches to check for chat-messages and filter if a valid match has been found.
// Filters the playername of yourself, 'Hello' and 'Goodbye' in the chat.
ifmatches(%CHAT%,"(?:%PLAYER%|Hello|Goodbye)");
filter;
endif;
Changelog
-
Fixed
in
v0.14.4
//
Was not stopping the macro when used in the onSendChatMessage event
-
Updated
in
v0.10.12
//
Can now be used in onSendChatMessage
- Added in v0.10.4