mIRC Home    About    Download    Register    News    Help

Print Thread
$nick isop = op what is command for : ~ & #138742 06/01/06 04:43 AM
Joined: Jan 2004
Posts: 133
W
WarlockW Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Jan 2004
Posts: 133

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

Re: $nick isop = op what is command for : ~ & #138743 06/01/06 04:59 AM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
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

Re: $nick isop = op what is command for : ~ & #138744 06/01/06 05:08 AM
Joined: Jan 2004
Posts: 133
W
WarlockW Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Jan 2004
Posts: 133

Well Not On the network i am testing the script frown

Re: $nick isop = op what is command for : ~ & #138745 06/01/06 05:23 AM
Joined: Oct 2005
Posts: 122
O
onesikgypo Offline
Vogon poet
Offline
Vogon poet
O
Joined: Oct 2005
Posts: 122
i believe for ~'s you use

if ($nick isowner $chan)

Re: $nick isop = op what is command for : ~ & #138746 06/01/06 05:24 AM
Joined: Mar 2005
Posts: 212
N
NeUtRoN_StaR Offline
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
$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

Last edited by NeUtRoN_StaR; 06/01/06 05:26 AM.
Re: $nick isop = op what is command for : ~ & #138747 06/01/06 05:29 AM
Joined: Jan 2004
Posts: 133
W
WarlockW Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Jan 2004
Posts: 133

darn need three different comands .. for this to work ?

Re: $nick isop = op what is command for : ~ & #138748 06/01/06 05:31 AM
Joined: Mar 2005
Posts: 212
N
NeUtRoN_StaR Offline
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
actually if your looking to catch anything above ops but not be specific isop will do the job just fine

Last edited by NeUtRoN_StaR; 06/01/06 05:36 AM.
Re: $nick isop = op what is command for : ~ & #138749 06/01/06 05:37 AM
Joined: Mar 2005
Posts: 212
N
NeUtRoN_StaR Offline
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
i would use
if ($nick !isop $chan)

Re: $nick isop = op what is command for : ~ & #138750 06/01/06 06:32 AM
Joined: Nov 2004
Posts: 21
D
Dertikter Offline
Ameglian cow
Offline
Ameglian cow
D
Joined: Nov 2004
Posts: 21
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.

Re: $nick isop = op what is command for : ~ & #138751 06/01/06 12:54 PM
Joined: May 2005
Posts: 79
M
Mary_juana Offline
Babel fish
Offline
Babel fish
M
Joined: May 2005
Posts: 79
//echo -a $nick($chan,<nick>).pnick will catch any possible mode prefixes.