mIRC Home    About    Download    Register    News    Help

Print Thread
Page 3 of 3 1 2 3
#93598 12/08/04 09:26 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
on *:DEOP:#: if (+ isin $nick(#,$opnick).pnick) { commands }
on *:DEVOICE:#: if (@ isin $nick(#,$opnick).pnick) { commands }

This might help smile


"All we are saying is give peace a chance" -- John Lennon
#93599 12/08/04 09:35 PM
Joined: Jul 2004
Posts: 169
S
ShinZon Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
well i tried this

on *:DEOP:#: {
if (- isin $nick(#,$opnick).pnick) { cline 10 # $opnick }
if ($opnick ishop #) { cline 11 # $opnick }
elseif ($opnick isvoice #) { cline 3 # $opnick }
else { cline 0 # $opnick }
}

so if nick has uop and on deop that it doesnt lose uop color, but it still does...

any idea how to make this event work ?

#93600 12/08/04 10:09 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
if (- isin $nick(#,$opnick).pnick) { cline 10 # $opnick }
Here you color the nick if they are UOP

if ($opnick ishop #) { cline 11 # $opnick }
Here you color the nick again if they are Hop (so the UOP color wont show)

elseif ($opnick isvoice #) { cline 3 # $opnick }
Here you say that, if the person is not an Hop AND they are a voice, color the nick again.

else { cline 0 # $opnick }
If the nick is not an Hop, not a voice and not an UOP, color them white.

So, if they are UOP but also are +voice or %hop, the Uop color will be overwrited.

Another thing, the character - is very used in nickname, so i suggest you to replace this line: if (- isin $nick(#,$opnick).pnick) { cline 10 # $opnick } for this one:
Code:
if (- isin $remove($nick(#,$opnick).pnick,$opnick)) { cline 10 # $opnick }

Hope it works smile



"All we are saying is give peace a chance" -- John Lennon
#93601 12/08/04 11:38 PM
Joined: Jul 2004
Posts: 169
S
ShinZon Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
thanks again for everything !

Page 3 of 3 1 2 3

Link Copied to Clipboard