mIRC Homepage
Posted By: Darkmnm $iif Issue - 25/07/07 03:13 AM
Can someone tell me what is wrong with the following code. I never had a problem with it in the past but for some reason I am getting an invalid format error out of the blue.

Code:
$iif(($mode !=+O,IRCop Tools)
Posted By: genius_at_work Re: $iif Issue - 25/07/07 03:37 AM
Code:
$iif($mode != +O,IRCop Tools)



That is the format for a $iif statement.

-genius_at_work
Posted By: Darkmnm Re: $iif Issue - 25/07/07 03:47 AM
Sweet man, thx
Posted By: Darkmnm Re: $iif Issue - 26/07/07 10:07 PM
ok, that code fixed the issue of the $iif error when menu pops up in the channel but now that feature which is basically to hide that part of the menu unless you are an Oper and it's not hiding that oper section.
Posted By: SladeKraven Re: $iif Issue - 26/07/07 10:26 PM
Code:
$iif(o isin $usermode,IRCop Tools)


Do you mean like that?
Posted By: Darkmnm Re: $iif Issue - 26/07/07 10:57 PM
Yep thats it. Thanks for the help
Posted By: starbucks_mafia Re: $iif Issue - 26/07/07 10:59 PM
You'll want to use isincs when checking modes.
Posted By: SladeKraven Re: $iif Issue - 26/07/07 11:08 PM
Even when checking for oper status?

O Local IRC Operator
o Global IRC Operator
Posted By: starbucks_mafia Re: $iif Issue - 27/07/07 12:43 AM
If the network supports both of those modes then no.
Posted By: DJ_Sol Re: $iif Issue - 27/07/07 01:51 AM
When checking modes I use isletter.

if (s isletter $chan($chan).mode)


from mirc help:
Quote:
isletter letter v1 is a letter in the list of letters in v2 (v2 optional)

© mIRC Discussion Forums