mIRC Homepage
Posted By: IR_n00b somthing like isowner and isadmin - 05/12/04 03:52 AM
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
Posted By: tidy_trax Re: somthing like isowner and isadmin - 05/12/04 03:56 AM
Code:
alias owner { return $iif($nick($$2,$1,.),$true,$false) }
alias admin { return $iif($nick($$2,$1,!),$true,$false) }
Posted By: IR_n00b Re: somthing like isowner and isadmin - 05/12/04 04:03 AM
hm.. it seems to keep returning $false the owner is a ~ symbol and a admin/protect is a &
edit: i got it to work
© mIRC Discussion Forums