|
|
Joined: Mar 2004
Posts: 155
Vogon poet
|
OP
Vogon poet
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. $iif(($mode !=+O,IRCop Tools)
|
|
|
|
Joined: Oct 2005
Posts: 1,741
Hoopy frood
|
Hoopy frood
Joined: Oct 2005
Posts: 1,741 |
$iif($mode != +O,IRCop Tools)
That is the format for a $iif statement. -genius_at_work
|
|
|
|
Joined: Mar 2004
Posts: 155
Vogon poet
|
OP
Vogon poet
Joined: Mar 2004
Posts: 155 |
|
|
|
|
Joined: Mar 2004
Posts: 155
Vogon poet
|
OP
Vogon poet
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.
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
$iif(o isin $usermode,IRCop Tools)
Do you mean like that?
|
|
|
|
Joined: Mar 2004
Posts: 155
Vogon poet
|
OP
Vogon poet
Joined: Mar 2004
Posts: 155 |
Yep thats it. Thanks for the help
|
|
|
|
Joined: Dec 2002
Posts: 2,962
Hoopy frood
|
Hoopy frood
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
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Even when checking for oper status?
O Local IRC Operator o Global IRC Operator
|
|
|
|
Joined: Dec 2002
Posts: 2,962
Hoopy frood
|
Hoopy frood
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
Hoopy frood
|
Hoopy frood
Joined: Jan 2007
Posts: 1,156 |
When checking modes I use isletter. if (s isletter $chan($chan).mode) from mirc help: isletter letter v1 is a letter in the list of letters in v2 (v2 optional)
|
|
|
|
|
|