mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2004
Posts: 200
I
IR_n00b Offline OP
Fjord artisan
OP Offline
Fjord artisan
I
Joined: Sep 2004
Posts: 200
is there anyway i can make mIRC return a value if the nick is +q or +a if i do $owner($nick,$chan) for example, or $admin(bob,IRC)
and if bob is +a on the channel IRC it would return $true

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
alias owner { return $iif($nick($$2,$1,.),$true,$false) }
alias admin { return $iif($nick($$2,$1,!),$true,$false) }


New username: hixxy
Joined: Sep 2004
Posts: 200
I
IR_n00b Offline OP
Fjord artisan
OP Offline
Fjord artisan
I
Joined: Sep 2004
Posts: 200
hm.. it seems to keep returning $false the owner is a ~ symbol and a admin/protect is a &
edit: i got it to work

Last edited by IR_n00b; 05/12/04 04:03 AM.

Link Copied to Clipboard