The Gate Keeper Posted August 6, 2009 Report Share Posted August 6, 2009 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 More sharing options...
Guest Travis Posted August 6, 2009 Report Share Posted August 6, 2009 I agree with err0r again! lol sorry tgk. I'd do away with your aliases and $iif's in your $readini command though. Link to comment Share on other sites More sharing options...
us3r_X Posted August 7, 2009 Report Share Posted August 7, 2009 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 More sharing options...
Guest Travis Posted August 7, 2009 Report Share Posted August 7, 2009 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 More sharing options...
Fanfare Posted August 7, 2009 Report Share Posted August 7, 2009 For Buzzen user mode prefix, only two worth taking notice of are '^ and ' Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now