Feature #5585
closed
a function that returns the account from a nickname
Added by armin armin over 2 years ago.
Updated over 2 years ago.
Description
Hi
Is there a function that returns a user's account from the nickname?
Example :
- The user's nickname is NickA and his account is AccountA
- The goal is to do something like this: //echo -a $account(NickA) and it returns AccountA
Cordialement
- Status changed from New to Duplicate
westor thank you
I made a quick function that might be useful:
; Know if a nick is using an account with $true or $false : //echo -a $isAccount(tapavu)
; Know if nick uses an account, if yes it returns the account : //echo -a $isAccount(tapavu,1)
; If the account does not exist, then $false : //echo -a $isAccount(FakeUser)
alias isAccount {
var %account = $ial($1).account
if ( %account ) {
if ($2 == 1) {
return %account
}
return $true
}
else {
return $false
}
}
Also available in: Atom
PDF