Yes, I know this sort of snippets has been done a few million times, but I came up with the idea to use the original mirc.ini file as a source! Basically, you add your nicknames to the mirc highlight list, and thats it!
This script will show the prefix of the user in the channel you were highlighted in (If it was a channel), else no prefix. It will say if it was a query or channel window, and which window aswell. It will also say what network it was on, incase you scoop over more then 1 network on your client.
Example of the output:
13:38:18 Lindrian` highlighted you on DaIRC at #testing: Hey Lindrian, this is a test.
Enjoy!
on *:TEXT:*:*: {
var %t = $ini(mirc.ini,highlight,0)
while (%t) {
if ($gettok($readini(mirc.ini,highlight,$+(n,%t)),2,34) isin $1-) || ($me isin $1-) && (!%delay) {
if ($target ischan) {
if ($active == $chan) || ($active == $target) { return }
}
elseif ($target !ischan) {
if ($active == $nick) { return }
}
var %c = $cid
echo -at $iif($istok(~ & @ % +,$left($nick($chan,$nick).pnick,1),32),$left($nick($chan,$nick).pnick,1) $+ $nick,$nick) highlighted $iif($cid != $activecid,you on $iif($scid(%c).network,$v1,$scid(%c).server),you) $iif($target ischan,at $chan $+ :,(Query window $qt($target) $+ ):) $1-
set %delay 1
}
dec %t
}
unset %delay
}
on *:ACTION:*:*: {
var %t = $ini(mirc.ini,highlight,0)
while (%t) {
if ($gettok($readini(mirc.ini,highlight,$+(n,%t)),2,34) isin $1-) || ($me isin $1-) && (!%delay) {
if ($target ischan) {
if ($active == $chan) || ($active == $target) { return }
}
elseif ($target !ischan) {
if ($active == $nick) { return }
}
var %c = $cid
echo -at $iif($istok(~ & @ % +,$left($nick($chan,$nick).pnick,1),32),$left($nick($chan,$nick).pnick,1) $+ $nick,$nick) highlighted $iif($cid != $activecid,you on $iif($scid(%c).network,$v1,$scid(%c).server),you) $iif($target ischan,at $chan $+ :,(Query window $qt($target) $+ ):) $1-
set %delay 1
}
dec %t
}
unset %delay
}