mIRC Homepage
Posted By: Kev_Uk adding +a and -a switch - 04/12/04 04:11 AM
How do i add this to the nicklist operating commands in this format

.$iif($$1 !isop #,Operator (+/-)): { mode # +ooooooooo $$1 $2 $3 $4 $5 $6 $7 $8 $9 }
.$iif($$1 isop #,Operator (+/-)): { mode # -ooooooooo $$1 $2 $3 $4 $5 $6 $7 $8 $9 }

As there isn't a isadmin or code for -a for certain networks.
Posted By: tidy_trax Re: adding +a and -a switch - 04/12/04 04:53 AM
It depends which flag (Eg: @ for operators) admins are on the network you use, i've seen +a as !, & and *, so you could try this:

Code:
.$iif($istok(! & *,$left($nick($chan,$$1).pnick,1),32),Admin (+/-)): mode $chan +aaaaaaaaa $$1 $2 $3 $4 $5 $6 $7 $8 $9
.$iif($istok(! & *,$left($nick($chan,$$1).pnick,1),32),Admin (+/-)): mode $chan -aaaaaaaaa $$1 $2 $3 $4 $5 $6 $7 $8 $9
Posted By: Iori Re: adding +a and -a switch - 04/12/04 04:57 AM
You can use $nick(#,$$1,<char>) using the actual prefix char.
  • .$iif($nick(#,$$1,@),Operator (+/-)): { mode # -ooooooooo $$1-9 }
    .$iif($nick(#,$$1,!),.............
    .etc...
Posted By: Kev_Uk Re: adding +a and -a switch - 04/12/04 03:37 PM
Having problems with your code Iori it seems ithe code only shows if the person is already an operator, although i would like it to be visible all the time, incase services are down and want to add people
Posted By: Kev_Uk Re: adding +a and -a switch - 04/12/04 03:46 PM
Tried using this and adding other status like @ and v, having trouble finding the right one just for regulars plus your coding seems to appear on 2 lines rather then just 1 like the one i posted first on the thread.
Posted By: Iori Re: adding +a and -a switch - 04/12/04 05:07 PM
I didn't include any negative conditions, figured you'd be able to add them in yourself. smile
Change ! to whatever the symbol for admin is on your network
  • .$iif(!$nick(#,$$1,!),Admin (+/-)): { mode # +aaaaaaaaa $$1-9 }
    .$iif($nick(#,$$1,!),Admin (+/-)): { mode # -aaaaaaaaa $$1-9 }
    .$iif(!$nick(#,$$1,@),Operator (+/-)): { mode # +ooooooooo $$1-9 }
    .$iif($nick(#,$$1,@),Operator (+/-)): { mode # -ooooooooo $$1-9 }
© mIRC Discussion Forums