CharmedOne Posted August 4, 2009 Report Share Posted August 4, 2009 if ($me isowner #) { is for owner if ($me ishost #) { is for the hosts so how do you do superowner ? And i think helpop would be if ($me ishelpop #) { tho i am not sure on that. Link to comment Share on other sites More sharing options...
JenX Posted August 4, 2009 Report Share Posted August 4, 2009 (edited) 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 August 4, 2009 by JenX Link to comment Share on other sites More sharing options...
The Gate Keeper Posted August 4, 2009 Report Share Posted August 4, 2009 i would use the isop/ishop/isowner more than the other approach as servers can differ in terms of the prefix stuff. Link to comment Share on other sites More sharing options...
Fanfare Posted August 5, 2009 Report Share Posted August 5, 2009 (edited) 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 August 5, 2009 by Fanfare Link to comment Share on other sites More sharing options...
Guest Travis Posted August 5, 2009 Report Share Posted August 5, 2009 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 More sharing options...
Haggis Posted August 5, 2009 Report Share Posted August 5, 2009 This has helped me a bit too with the nicklist i am going to be working on Link to comment Share on other sites More sharing options...
The Gate Keeper Posted August 5, 2009 Report Share Posted August 5, 2009 And I agree with err0r. Use isowner, isop, ishop. am i err0r? Link to comment Share on other sites More sharing options...
Josh` Posted August 5, 2009 Report Share Posted August 5, 2009 didn't you know? Link to comment Share on other sites More sharing options...
CharmedOne Posted August 5, 2009 Author Report Share Posted August 5, 2009 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 More sharing options...
Fanfare Posted August 5, 2009 Report Share Posted August 5, 2009 (edited) Instead of using: if ($nick($chan,$mnick,')) { return } Why didn't you use: if (!$nick($chan,$mnick,')) { You could've saved yourself a closing bracket. The ! tells mirc to negate. Edited August 5, 2009 by Fanfare 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