mIRC Home    About    Download    Register    News    Help

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

Darkmnm #181515 25/07/07 03:37 AM
Joined: Oct 2005
Posts: 1,741
G
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

Joined: Mar 2004
Posts: 155
D
Darkmnm Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Mar 2004
Posts: 155
Sweet man, thx

Joined: Mar 2004
Posts: 155
D
Darkmnm Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Mar 2004
Posts: 155
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.

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


Do you mean like that?

SladeKraven #181574 26/07/07 10:57 PM
Joined: Mar 2004
Posts: 155
D
Darkmnm Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Mar 2004
Posts: 155
Yep thats it. Thanks for the help

SladeKraven #181575 26/07/07 10:59 PM
Joined: Dec 2002
Posts: 2,962
S
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.
Joined: Dec 2002
Posts: 3,547
S
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

SladeKraven #181578 27/07/07 12:43 AM
Joined: Dec 2002
Posts: 2,962
S
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.
Joined: Jan 2007
Posts: 1,156
D
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)



Link Copied to Clipboard