mIRC Homepage

$nick isop = op what is command for : ~ &

Posted By: WarlockW

$nick isop = op what is command for : ~ & - 06/01/06 04:43 AM


On a network that uses: ~ and & and @

IF: $nick isop = op
what is command for : ~ & <signs ?

if ( %nick isop $chan ) goto end
^^^^ < I need this to igone everyone from OPS up!

Thanks ..
Posted By: genius_at_work

Re: $nick isop = op what is command for : ~ & - 06/01/06 04:59 AM

There is no command higher than @op (isop). I'm not sure how mIRC treats the ~& prefixes, but I think that anyone with those modes is also @op'd, so $nick isop $chan should be true for them.

-genius_at_work
Posted By: WarlockW

Re: $nick isop = op what is command for : ~ & - 06/01/06 05:08 AM


Well Not On the network i am testing the script frown
Posted By: onesikgypo

Re: $nick isop = op what is command for : ~ & - 06/01/06 05:23 AM

i believe for ~'s you use

if ($nick isowner $chan)
Posted By: NeUtRoN_StaR

Re: $nick isop = op what is command for : ~ & - 06/01/06 05:24 AM

$nick($chan,nick,~)

$nick($chan,nick,&)

each of the above returns a number if the nick is the respective operator or null if they are not

there is also the isowner operator as mentioned above
im not aware of any operator for +a
so you may have to use the method ive listed
,good luck
Posted By: WarlockW

Re: $nick isop = op what is command for : ~ & - 06/01/06 05:29 AM


darn need three different comands .. for this to work ?
Posted By: NeUtRoN_StaR

Re: $nick isop = op what is command for : ~ & - 06/01/06 05:31 AM

actually if your looking to catch anything above ops but not be specific isop will do the job just fine
Posted By: NeUtRoN_StaR

Re: $nick isop = op what is command for : ~ & - 06/01/06 05:37 AM

i would use
if ($nick !isop $chan)
Posted By: Dertikter

Re: $nick isop = op what is command for : ~ & - 06/01/06 06:32 AM

I use:
Code:
 if ($left($nick(#,$nick).pnick,1) isin $prefix) &amp;&amp; ($left($nick(#,$nick).pnick,1) == ~) 


Change ~ to & if you wanted it for channel admins of course.
Posted By: Mary_juana

Re: $nick isop = op what is command for : ~ & - 06/01/06 12:54 PM

//echo -a $nick($chan,<nick>).pnick will catch any possible mode prefixes.
© 2022 mIRC Discussion Forums