Jump to content

Superowner Question


CharmedOne

Recommended Posts

i would suggest the other approach for general use (disregarding superowners as they are server particular, not general IRC) as general IRC may have different prefixes.

 

try and learn to combine if statements where possible... for example...

 

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

Link to comment
Share on other sites

Try this method:

 

..$Iif($Nick(#, $Me, '.), $Style(0), $Style(2)) +q: sockwrite -n $C_Sock(#) $RawLineFeed(MODE, +q, $1-)

..$Iif($Nick(#, $Me, '.), $Style(0), $Style(2)) -q: sockwrite -n $C_Sock(#) $RawLineFeed(MODE, -q, $1-)

..-

...$Iif($Nick(#, $Me, '.@), $Style(0), $Style(2)) +o: sockwrite -n $C_sock(#) $RawLineFeed(MODE, +o, $1-)

...$Iif($Nick(#, $Me, '.@), $Style(0), $Style(2)) -o: sockwrite -n $C_sock(#) $RawLineFeed(MODE, -o, $1-)

..-

...$Iif($Nick(#, $Me, '.@), $Style(0), $Style(2)) +h: sockwrite -n $C_sock(#) $RawLineFeed(MODE, +h, $1-)

...$Iif($Nick(#, $Me, '.@), $Style(0), $Style(2)) -h: sockwrite -n $C_sock(#) $RawLineFeed(MODE, -h, $1-)

..-

...$Iif($Nick(#, $Me, '.@), $Style(0), $Style(2)) +v: sockwrite -n $C_sock(#) $RawLineFeed(MODE, +v, $1-)

...$Iif($Nick(#, $Me, '.@), $Style(0), $Style(2)) -v: sockwrite -n $C_sock(#) $RawLineFeed(MODE, -v, $1-)

Link to comment
Share on other sites

Guest Travis

Well whoever wrote that didn't need to do all that.

 

$iif($me isop #,$true,$false) is $true when you are superowner.

 

The only time you need to use $nick(#,$me,') or $nick(#,$nick,') is if you want to make sure you or they are a superowner and not owner or host.

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...