mIRC Home    About    Download    Register    News    Help

Print Thread
#119328 04/05/05 05:05 AM
Joined: Aug 2003
Posts: 27
F
fez Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Aug 2003
Posts: 27
Hello - I find that mIRC's built-in highlighter is not sufficient for me since I wish to highlight only the nickname and not the text itself. I tried writing the following script:

on *:text:*:#:{
if (fez isin $1-) {
highlight $chan $nick $1- | halt
}
}
alias highlight {
echo $1 1,7 $+ $timestamp < $+ $2 $+ > $3-
}

This highlights on the word "fez" (my nickname).
However the output for this is two lines - the highlighted line as well as the "regular" line that mirc prints. The "halt" statement appears to be ignored.

Is there any way to make it so that the script will supress the default text displayed by mirc?

Joined: Aug 2003
Posts: 27
F
fez Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Aug 2003
Posts: 27
alright looks like the answer is simple: just use on ^*:text instead of on *:text

thanks anyway
peace

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
on ^*:text:*fez*:#:{ haltdef | highlight $chan $nick $1- }
alias highlight { echo $1 1,7 $+ $timestamp < $+ $2 $+ > $3- }

^ that well work just that same for you. (haltdef used at the start instead of halt only becuase I like that method more, no specific difference in it)


on ^*:text:$($+(*,$me,*)):#:{ haltdef | highlight $chan $nick $1- }
alias highlight { echo $1 1,7 $+ $timestamp < $+ $2 $+ > $3- }

^ that one well highlight what ever nick you happen to be on at the time.


Link Copied to Clipboard