|
|
Joined: Dec 2010
Posts: 7
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Dec 2010
Posts: 7 |
Hello, I'd like to know if it is possible to write a highlight ignore script. For example I want my highlighting to work whenever someone highlights me except a certain host without having to ignore that person.
Let's say I don't want *!*@test.host to be able to highlight me but I still want to be able to see what they say while I still want everyone else except that host to be able to highlight me, is this possible ?
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
In theory it's possible. Could look something like on *:text:*:#:{
check_highlight $address $1-
}
alias -l check_highlight {
if $address != <banned_address> {
;perform highlight
}
}
Please note that the above is a very simple example.
|
|
|
|
Joined: Dec 2010
Posts: 7
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Dec 2010
Posts: 7 |
In theory it's possible. Could look something like on *:text:*:#:{
check_highlight $address $1-
}
alias -l check_highlight {
if $address != <banned_address> {
;perform highlight
}
}
Please note that the above is a very simple example. Thanks but that doesn't work at all.
|
|
|
|
Joined: Jan 2008
Posts: 57
Babel fish
|
Babel fish
Joined: Jan 2008
Posts: 57 |
Try: on *:text:*:#:{
check_highlight $address($nick,2) $1-
}
alias -l check_highlight {
if $1 != <banned_address> {
;perform highlight
}
} The available types are: 0: *!user@host 1: *!*user@host 2: *!*@host 3: *!*user@*.host 4: *!*@*.host 5: nick!user@host 6: nick!*user@host 7: nick!*@host 8: nick!*user@*.host 9: nick!*@*.host This above means for $address($nick,2)
|
|
|
|
Joined: Dec 2010
Posts: 7
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Dec 2010
Posts: 7 |
With the code above, if I turn off the default highlight, no one can highlight me. If I keep on the mirc highlight from ALT+B, the host that I wrote in there can still highlight me. on *:text:*:#:{
check_highlight $address($nick,2) $1-
}
alias -l check_highlight {
if $1 != *!*@chattingaway-9D4119A0.no.no.cox.net {
;perform highlight
}
}
The person with *!*@chattingaway-9D4119A0.no.no.cox.net is still able to highlight me when ALT+B highlight is turned on
Last edited by vladdeh; 04/12/10 03:22 PM.
|
|
|
|
Joined: Jan 2008
Posts: 57
Babel fish
|
Babel fish
Joined: Jan 2008
Posts: 57 |
So in short words, this works like this. When someone says your nick, which u will define like if $me isin $1- { script calls for alias check_highlight which checks if nick's host is same as this in check_highlight. If it's not same, it should notify u about notification. So u should change line: to echo -a * $nick calls u at $chan for $2-
|
|
|
|
Joined: Dec 2010
Posts: 7
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Dec 2010
Posts: 7 |
eh that just spams echo on everything people say on channels..i got line 20 lines of echo in 3 seconds, plus what I wanted was the highlight feature of mIRC to work PROPERLY like it normally does for everyone except 1 host. And by PROPERLY I mean, FLASH, TIP, Color of the line where someone highlights me = blue.
What I wanted was the highlight feature to work normally like it used to except for 1 host, but I guess it isn't possible or maybe very complicated to do
Last edited by vladdeh; 04/12/10 03:44 PM.
|
|
|
|
Joined: Mar 2010
Posts: 146
Vogon poet
|
Vogon poet
Joined: Mar 2010
Posts: 146 |
Actually no $address is needed. You can simply use $site and/or $wildsite on *:Text:*:#:{
if ($me isin $strip($1-)) {
var %ignoreHosts = 127.0.0.1 Another.Host.Here.com
if ($istok(%ignoreHosts,$site,32)) return
else { echo 4 -a $nick called your nickname! }
}
} NOTE: In the code above, you don't need to add *!*@* mask in hosts, just type the host itself. If you want to use wildcard like *!*@Host.here.com then use $wildsite instead of $site. (Also don't forget to separate each host with SPACE in '%ignoreHosts' variable.) Good luck.
Nothing...
|
|
|
|
Joined: Jan 2008
Posts: 57
Babel fish
|
Babel fish
Joined: Jan 2008
Posts: 57 |
Then you should write this part as on *:text:*:#:{
if $me isin $1- {
check_highlight $address($nick,2) $1-
}
} And it will work for your nick.
|
|
|
|
Joined: Dec 2010
Posts: 7
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Dec 2010
Posts: 7 |
You guys really can't read my posts or you don't understand what I'm asking ?
I'll repeat in undernline maybe then you'll understand.
I want the highlight feature to still work like it used to until now, with mIRC flashing and changing the color of the line where I got highlighted, your script there completely replaces the usual highlighting with just an /echo notification
Last edited by vladdeh; 04/12/10 03:54 PM.
|
|
|
|
Joined: Jun 2007
Posts: 933
Hoopy frood
|
Hoopy frood
Joined: Jun 2007
Posts: 933 |
Not a solution, but you might want to consider posting a feature suggestion to add "Highlight" as a checkbox option in Address Book > Control > Add/Edit > Ignore options: (along with a -h command line switch for /ignore of course) Personally I can see this being useful with certain users insisting on constantly highlighting your nick.
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
After doing some more research and reading the other posts (by the way, underlining/emphasizing your words doesn't make them any more understandable), I think the following will work for you. Unlike my last code, this one is (I believe) complete. on ^*:text:*:#:{
check_highlight $address $1-
}
on ^*:action:*:#:{
check_highlight $address $1-
}
on ^*:notice:*:#:{
check_highlight $address $1-
}
alias -l check_highlight {
var %ignoreHosts = 127.0.0.1 Another.Host.Here.com
if !$istok(%ignoreHosts,$1,32) {
echo -l $2-
}
}
|
|
|
|
|
|