interception message
- regulxenao
- Posts: 34
- Joined: 03 Mar 2011, 20:29
interception message
How can I intercepte public messages - modif or remove it? And can I filter outgoing public messages from server to user (for example, that would be some sort of message block something which users?).
- regulxenao
- Posts: 34
- Joined: 03 Mar 2011, 20:29
- regulxenao
- Posts: 34
- Joined: 03 Mar 2011, 20:29
bax wrote:You can use Extension Filters. Check the bottom of this document.
Hi, bax! Thanks for answer.
Yes, I did as written at this document. But I understood, that filter make enable or disable of execution of the Extension, not filtering message sending. If I do return "CONTINUE" in Filter - the Extenstion work well and user recive public message. But if I return HALT - my extenstion doesn't work, but user still recive public message message! I need filter outgoing messeges.
I know you can apply the word filter in a custom extension, as I do it myself. Something like:
I'm not as familiar with the flood filter, but I would imagine it can be used similarly.
Code: Select all
getParentExtension().getParentZone().getWordFilter().apply(message, user);
I'm not as familiar with the flood filter, but I would imagine it can be used similarly.
Who is online
Users browsing this forum: No registered users and 43 guests