User modes is a setting in mIRC's options. Alt-O > IRC > Show Mode Prefix. Double brackets aren't an escape character. You'd see them as double brackets. []'s are treated as plain text when touching another character -- [*] would be displayed as plain text. If you need to display a bracket by itself, you can use $chr(91) and $chr(93). As a note, there are occasions when you can display them without $chr() and without touching other items. These are just basic guidelines.
You can create your own identifiers if you need them by just using an alias. Here's a basic example:
alias bracket {
return « $+ $1 ( $+ %altnicks $+ ) $+ »
}
Use: //echo -a $bracket($me)
Output: «Riamus2 (Riamus,RiamusAFK)»
Note: %altnicks is filled with the alternate nicks that you obtain through your script. In this basic example, it's just a single variable and not necessarily based on what is in $1. This would need some adjusting based on how you're storing/accessing your data (for example, using a hash table) and is just meant to steer you in the right direction. You'll probably also want to set it up to hide the ()'s if there aren't any alternate nicks.
Usage in a script: //echo -a $bracket($nick) $1- | haltdef
*Edited the script example to something a little closer to what's being discussed.