You can use RAW
event handlers to intercept server messages and change their length, format, and color as you see fit.
For example, you can use a script like this to intercept MOTD messages:
raw 375:*: haltdef
raw 376:*: haltdef
raw 372:*: /echo -st $2- | haltdef
Now, if you run the command /MOTD, you will see that the first and last lines have been blocked for display. They were under the protocol numbers as 375 and 376.
Numeric line numbering may differ depending on the version of IRCd.
To keep track of the lines you want and their numerical value, you can use the following code, placing it above all others:
raw *:*: .echo -s $+($chr(3),04,,$numeric,$chr(3)) $1-
And to intercept user messages, use other handlers using the ^
prefix only works with the following handlers: ACTION, BAN, CHAT, DEHELP, DEOP, DEVOICE, HELP, INVITE, JOIN, KICK, MODE, NICK, NOTICE, OP, OPEN, PART, TEXT, UNBAN, USERMODE, VOICE, QUIT, SERV, SERVERMODE, SNOTICE, TOPIC, WALLOPS.
An example of intercepting and replacing a users messages on a channel:
on ^*:TEXT:*:#: .echo -t $chan $+(<,$nick,>) $1- | halt
Thus, you can modify almost all messages to suit your preferred format and appearance. See the mIRC client manual for more details with examples.