Actions
Feature #5585
closeda function that returns the account from a nickname
Start date:
05/13/2022
Due date:
% Done:
0%
Estimated time:
Operative System:
All
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
Updated by westor (GR) over 2 years ago
use: $ial().account
example: $ial(westor).account
Updated by armin armin over 2 years ago
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 } }
Actions