mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 416
O
Othello Offline OP
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 416
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?

Joined: Dec 2002
Posts: 1,995
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 1,995

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: 416
O
Othello Offline OP
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 416
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.
Joined: Dec 2002
Posts: 1,995
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 1,995

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,884
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,884
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.

Joined: Dec 2002
Posts: 1,995
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 1,995

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

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

Working late at night makes for a lousy scripter.


Link Copied to Clipboard