IRC /me Message

Hello, When I get a /me message in my CMD it shows as:

Does anyone know how to make this into the original text “/me Test Message”? As am trying to test for and ban /me messages. (Using PHP)

Thanks, Joe :slight_smile:

The /me command adds \0001ACTION in front of the message and \0001 at the end, with \0001 referring to the character with the decimal value 1 (not the character that represents the number 1). It depends on your programming language how that character would be represented in your code.

So to detect a /me message you need to test if the message starts with \0001ACTION and so on, strip away the stuff you don’t want and then you got the original message. If you just want to ban someone for using /me messages then you don’t even have to do the last part.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.