mIRC Homepage
Posted By: Darkmnm Disabled feature in nicklist - 23/12/04 02:32 AM
Can someone tell me what is wrong with this coding. For some reason when I am @'ed or %'ed the word control is still disabled.
Code:
  
$iif(($me !ishop #) || (($me !isoq #) || ($me !isop #),$style(2)) Control
Posted By: DrStein Re: Disabled feature in nicklist - 23/12/04 03:02 AM
|| is the symbol mirc uses for logical or.

So when you are Op for example $me !isop # is false because you are op but $me !ishop #) and ($me !isoq #) are true.Result will always be true (so control will always be disabled)

Replace || with && .When you are a regular user or voiced
(($me !ishop #) && (($me !isoq #) && ($me !isop #) will be true and control will be disable.
Posted By: Darkmnm Re: Disabled feature in nicklist - 23/12/04 03:09 AM
Doesn't work at all with the $$'s replacing the ||'s. The word Control is completely gone from the nicklist when using it in this way.
Posted By: DrStein Re: Disabled feature in nicklist *DELETED* - 23/12/04 03:16 AM
Oops i wanted to modify the post and i hit delete by mistake :P

As i wrote before it was && not $$ grin

I think i need a coffee :tongue:
Posted By: Darkmnm Re: Disabled feature in nicklist - 23/12/04 03:18 AM
My bad, it was a typo while typing here. in the code i have &&'s not $$'s
Posted By: DrStein Re: Disabled feature in nicklist - 23/12/04 03:30 AM
Works fine here .Type exactly what you have written .Maybe you have forgoten a "(" or something like that

$iif(($me !ishop #) && ($me !isvoice #) && ($me !isop #),$style(2)) Control:echo -a test
works fine
Posted By: DrStein Re: Disabled feature in nicklist - 23/12/04 03:33 AM
Yes you have and because i copy paste your code when i wrote it in here i have one more ( in my code too blush

You have (($me !isoq #) .It is ($me !isoq #)
Posted By: Darkmnm Re: Disabled feature in nicklist - 23/12/04 03:40 AM
the problem was with the isoq all together. with that bit taken out and the use of && it works perfectly. Thanks for your help it's greatly appreciated.
Posted By: DrStein Re: Disabled feature in nicklist - 23/12/04 03:49 AM
isoq isn't a default mirc operator.

I thought you had an alias for this .That why in my test i replaced it with isvoice
Posted By: FiberOPtics Re: Disabled feature in nicklist - 23/12/04 12:38 PM
It's not possible to create an alias and use it as an operator, unless if it's a custom identifier and in the sense of

if $isoq(...) { }

Greets
© mIRC Discussion Forums