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