GoldFish, the reason you didn't see the user mode prefix is that you didn't use the > $nick(#,$nick).pnickDon't use > if $me isin $1-, it results many false positives. This is all you need:
on $^*:text:$(/\s\Q $+ $me $+ \E\b/iS):#:{
haltdef | if (# $cid != $active $activecid) {
echo -bflimt You were highlighted in # by $nick saying: $1-
}
else { echo -abflimt $+($chr(3),2,<,$nick(#,$nick).pnick,>) $1- }
}