mIRC Home    About    Download    Register    News    Help

Print Thread
$iif Issue #181513 25/07/07 03:13 AM
Joined: Mar 2004
Posts: 139
D
Darkmnm Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Mar 2004
Posts: 139
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)

Re: $iif Issue [Re: Darkmnm] #181515 25/07/07 03:37 AM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Code:
$iif($mode != +O,IRCop Tools)



That is the format for a $iif statement.

-genius_at_work

Re: $iif Issue [Re: genius_at_work] #181516 25/07/07 03:47 AM
Joined: Mar 2004
Posts: 139
D
Darkmnm Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Mar 2004
Posts: 139
Sweet man, thx

Re: $iif Issue [Re: genius_at_work] #181572 26/07/07 10:07 PM
Joined: Mar 2004
Posts: 139
D
Darkmnm Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Mar 2004
Posts: 139
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.

Re: $iif Issue [Re: Darkmnm] #181573 26/07/07 10:26 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
$iif(o isin $usermode,IRCop Tools)


Do you mean like that?

Re: $iif Issue [Re: SladeKraven] #181574 26/07/07 10:57 PM
Joined: Mar 2004
Posts: 139
D
Darkmnm Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Mar 2004
Posts: 139
Yep thats it. Thanks for the help

Re: $iif Issue [Re: SladeKraven] #181575 26/07/07 10:59 PM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
You'll want to use isincs when checking modes.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Re: $iif Issue [Re: starbucks_mafia] #181576 26/07/07 11:08 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Even when checking for oper status?

O Local IRC Operator
o Global IRC Operator

Re: $iif Issue [Re: SladeKraven] #181578 27/07/07 12:43 AM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
If the network supports both of those modes then no.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Re: $iif Issue [Re: starbucks_mafia] #181582 27/07/07 01:51 AM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
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)