this is a simple say my name tooltip snippet using mirc's built in $tip ability
Ok basically this checks to see if a user said your name in the room. Reason for putting it below the on text instead of in the on text area is in case you use a heavily unicode nickname and want to include a shortened version of your nickname instead. For example if your nick is «CB» and ppl normally just refer to you as cb you can use that as well by adding || (cb isin $1-) or you can replace the $me with cb. Because of the $appstate and the $chan != $active. It will only alert you if mirc is reduced to the tray or the text is in a chan that isn't the active one. Next is the flood protection. Has per user and per text protection to prevent flooding. You can change it as needed. the Regsubex simply strips out buzzen style tags. Thanks to nick for the regex.
on *:text:*:#: {
if (($me isin $1-) && ($version !< 6.31) && (!%tip. [ $+ [ $nick ] ]) && (($appstate == tray) || ($chan != $active))) {
inc -eu2 %alert.flood
if (%alert.flood < 2) {
$tip('Tray Tip', 4Name Alert14 $chr(40) $network $chr(41) , 1 $nick : $regsubex($1-, /\[(?:style\x20.*?|/style)\]/gi,$null) - 12 $chan , 10)
set -eu15 %tip. [ $+ [ $nick ] ] true
}
}
}
Hopefully this is laid out so that it is easily understandable. This can be used over multiple networks. Improve on it if you wish and post it. No credit is required to me but if you use the regex please leave credit to nick.
Here is a pic of what this does
