Jump to content

Superowner Question


CharmedOne

Recommended Posts

For Superowner you can use if ($nick($chan,$nick,'))

Helpop is if ($nick ishop #)

 

Hope this helps.

 

swap $me for $nick in your case, my readings bad lol

Edited by JenX
Link to comment
Share on other sites

Another way of checking superowner is:

 if ($left($nick(#,$nick).pnick,1) == ') {

You do the same for various prefixes, which can be checked using

 //echo $prefix

to find out. d33j4y's example is equally efficient and shorter and does the same thing.

Edited by Fanfare
Link to comment
Share on other sites

Guest Travis

It isnt ishost, it's isop. if ($me isop #)

 

And I agree with err0r. Use isowner, isop, ishop.

 

You can also combine user modes in the $nick identifier.

 

if ($nick(#,$nick,' %)) will be true if nick is a super owner or helpop.

Link to comment
Share on other sites

Ok so you know what I am trying to do, I am a gold & my auto vice keeps trying to voice superowners & i am trying to stop the message, YOU CANNOT CHANG THE LEVEL OF SOMONE HIGHER THAN YOURS.

 

 

 
on *:join:#:{
;Auto Voice
  if ($readini($settings(chanoptions.txt),$iif($ini($settings(chanoptions.txt),#,0) != 0,#,Default),AutoVoice)) {
    if ($nick($chan,$mnick,')) { return }
    .sockwrite -tn buzzen mode # +v $nick 
  }
}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...