mIRC Homepage
Posted By: Skeletor Cycling an empty op-less channel - 31/10/08 09:16 PM
Hey,

I was after a script which when a channel has become op-less and empty, ie only me in $chan without ops, it would automatically /hop that channel to regain ops.

I have already made the groups and the dialog with check box. the next part has completely gone over my head.

Any ideas?
Posted By: DJ_Sol Re: Cycling an empty op-less channel - 31/10/08 09:29 PM
on *:part:#:{
if ($nick(#,0,o) == 0) && ($nick(#,0,q) == 0) { hop $chan }
}
Posted By: Skeletor Re: Cycling an empty op-less channel - 31/10/08 09:36 PM
Fantastic mate!

Cheers.
Posted By: DJ_Sol Re: Cycling an empty op-less channel - 31/10/08 09:38 PM
Np smile
Posted By: qwerty Re: Cycling an empty op-less channel - 31/10/08 09:58 PM
When a user parts a channel, $nick() still counts them inside the on PART event (unless /updatenl is called prior to $nick()). Also, you don't want the event to trigger when you part. So something like this should be used:
Code:
on !*:part:#: if $nick(#,0) == 2 && !$nick(#,$me,oq) { hop # }
Posted By: Skeletor Re: Cycling an empty op-less channel - 31/10/08 10:05 PM
Wicked, Thanks to you both
© mIRC Discussion Forums