mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 417
O
Othello Offline OP
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
In what context can I use " if ( $aop == true ) "
Should this be used in a raw command or on a ON Join or On OP?




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

Well you can use it anywhere, it returns $true if auto-op is enabled or $false if auto-op is disabled.

Joined: Dec 2002
Posts: 417
O
Othello Offline OP
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
I tired this simple script with no responce

ON *:OP:#: {
if ( $aop == true ) { /echo -s a o p - $opnick }
if ( $aop == false ) { /echo -s not aop - $opnick }
}


Last edited by Othello; 20/04/08 03:39 AM.



Intelligence: It's better to ask a stupid question, then to prove it by not asking....
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

In that case you would have to use $aop($address($opnick,5)) and it would return the first matching address or $null if no matching addresses.

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
The boolean true/false values in mIRC are represented by [color:green]$true[/color] and [color:green]$false[/color] - so your code should read "if ($aop == $true)" to check if the Auto-op setting is switched on.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

heh .. I didn't even notice the $ was missing. Good catch. smile

Joined: Dec 2002
Posts: 417
O
Othello Offline OP
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
Thanks for the info.

Working late at night makes for a lousy scripter.




Intelligence: It's better to ask a stupid question, then to prove it by not asking....

Link Copied to Clipboard