mIRC Home    About    Download    Register    News    Help

Print Thread
M
Mike_Healan
Mike_Healan
M
How does mIRC identify a halfop? I want to script a remote for when someone halfops me.
on *:OP:#: is how it's done for full OP, but how would I do that halfop? on *:HALFOP:#: didn't work.

Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
ON HELP

M
Mike_Healan
Mike_Healan
M
Doesn't seem to be working for some reason smirk

on *:HELP:#:{
if $hnick == $me
echo $active You've been halfopped in $chan
}
Nothing happens

Joined: Dec 2002
Posts: 1,214
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,214
Why not try this

On *:HELP:#Channel:/msg $chan $nick was halfopped!
}

i think that will work....im not sure...i havent tested it so all i can say is try it

or

on *:HELP:#Channel:/echo -s $hnick was halfopped!!
}

Like i said im not totally sure on this...

Last edited by The_Game; 28/03/03 10:44 AM.
M
Mike_Healan
Mike_Healan
M
Got it finally

on *:help:#:{
if ($hnick == $me) {
cs dehalfop # $me
}
}

What I'm doing is when someone HalfOPs me, it tells chanserv to dehalfop me. I have a friend who annoys the hell out of me by halfopping me while I'm away and I've deopped myself.

Thanks guys.

Joined: Dec 2002
Posts: 1,214
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,214
glad it works for ya....as for the help no problem thats what we are here for...to help out one another..

Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
You can, i believe just use /mode # -h $me, rather then querying chanserv. This might be better for chans you don't have power on.

Also, on a side note, the game why u add an extra brace to the end of your statement where none is needed confused

Joined: Dec 2002
Posts: 1,214
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,214
thats a simple answer i was cut and pasting....hoping he would be able to differenciate between what i posted by using one or the other.....I see that this could add to some confusion...i will try to make more sense outta things in the future.

Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
I mean, I'm not trying to attack your scripting skills, just curius. Also, no offence to those who need help in the boards, just that excess characters might be take literally, esp by those whom don't know whats going on. grin

Joined: Dec 2002
Posts: 1,214
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,214
Right...I'll try not to make things confusing for them in the future....


Link Copied to Clipboard