diff options
author | HoraK-FDF <horak-fdf@web.de> | 2022-10-23 17:40:02 +0200 |
---|---|---|
committer | HoraK-FDF <horak-fdf@web.de> | 2022-10-23 17:40:02 +0200 |
commit | 52db11d2d4ddabc1bb70bb1b6faecbc3135205c2 (patch) | |
tree | 14495e785cfdcb3d8678a6edeeab9438a5f3af2e /src/admin | |
parent | 349ef9183fc18d2174dfd9d2a2a0cbb510d00fc1 (diff) | |
download | tmwa-admin-reg2-mod.tar.gz tmwa-admin-reg2-mod.tar.bz2 tmwa-admin-reg2-mod.tar.xz tmwa-admin-reg2-mod.zip |
tmwa-admin reg2 fix2tmwa-admin-reg2-mod
Diffstat (limited to 'src/admin')
-rw-r--r-- | src/admin/ladmin.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/admin/ladmin.cpp b/src/admin/ladmin.cpp index a75d377..6e8642b 100644 --- a/src/admin/ladmin.cpp +++ b/src/admin/ladmin.cpp @@ -547,28 +547,28 @@ void display_help(ZString param) || command == "ga"_s) { PRINTF("getallaccreg2/getall/ga <account id>\n"_fmt); - PRINTF(" Display all reg2\n"_fmt); + PRINTF(" Display all login-stored ##registers\n"_fmt); } else if (command == "getaccreg2"_s || command == "get"_s || command == "g"_s) { PRINTF("getaccreg2/get/g <account id> <variable>\n"_fmt); - PRINTF(" Display a reg2\n"_fmt); + PRINTF(" Display a login-stored ##register\n"_fmt); } else if (command == "setaccreg2"_s || command == "set"_s || command == "s"_s) { PRINTF("setaccreg2/set/s <account id> <variable> <value>\n"_fmt); - PRINTF(" Modify or add a reg2\n"_fmt); + PRINTF(" Modify or add a login-stored ##register\n"_fmt); } else if (command == "delaccreg2"_s || command == "del"_s || command == "d"_s) { PRINTF("delaccreg2/del/d <account id> <variable>\n"_fmt); - PRINTF(" Delete a reg2\n"_fmt); + PRINTF(" Delete a login-stored ##register\n"_fmt); } else { @@ -612,10 +612,10 @@ void display_help(ZString param) PRINTF(" unblock <account name> -- Set state 0 (Account ok) to an account\n"_fmt); PRINTF(" version -- Gives the version of the login-server\n"_fmt); PRINTF(" who <account name> -- Display all information of an account\n"_fmt); - PRINTF(" getallaccreg2/getall/ga <account id> -- Display all reg2\n"_fmt); - PRINTF(" getaccreg2/get/g <account id> <variable> -- Display a reg2\n"_fmt); - PRINTF(" setaccreg2/set/s <account id> <variable> <value> -- Modify or add a reg2\n"_fmt); - PRINTF(" delaccreg2/del/d <account id> <variable> <value> -- Delete a reg2\n"_fmt); + PRINTF(" getallaccreg2/getall/ga <account id> -- Display all login-stored ##registers\n"_fmt); + PRINTF(" getaccreg2/get/g <account id> <variable> -- Display a login-stored ##register\n"_fmt); + PRINTF(" setaccreg2/set/s <account id> <variable> <value> -- Modify or add a login-stored ##register\n"_fmt); + PRINTF(" delaccreg2/del/d <account id> <variable> -- Delete a login-stored ##register\n"_fmt); PRINTF(" Note: To use spaces in an account name, type \"<account name>\" (or ').\n"_fmt); } } @@ -1517,7 +1517,7 @@ void checkloginversion(void) } //----------------------------------------------- -// Sub-function: Display all reg2 +// Sub-function: Display all login-stored ##registers //----------------------------------------------- static void get_all_accreg2(AccountId account_id) @@ -1529,22 +1529,22 @@ void get_all_accreg2(AccountId account_id) } //----------------------------------------------- -// Sub-function: Display a reg2 +// Sub-function: Display a login-stored ##register //----------------------------------------------- static void get_accreg2(ZString param) { AccountId account_id; GlobalReg reg2; - + if (!qsplit(param, &account_id, ®2.str)) { PRINTF("Please input an account id and a variable to delete.\n"_fmt); PRINTF("<example> getaccreg2 2000000 ##GLOBAL\n"_fmt); - LADMIN_LOG("Incomplete parameters to get a accreg2 of an account ('get' command).\n"_fmt); + LADMIN_LOG("Incomplete parameters to get a login-stored ##register of an account ('get' command).\n"_fmt); return; } - + Packet_Fixed<0x7958> fixed_58; fixed_58.account_id = account_id; fixed_58.name = reg2.str; @@ -1553,22 +1553,22 @@ void get_accreg2(ZString param) } //----------------------------------------------- -// Sub-function: Modify or add a reg2 +// Sub-function: Modify or add a login-stored ##register //----------------------------------------------- static void set_accreg2(ZString param) { AccountId account_id; GlobalReg reg2; - + if (!qsplit(param, &account_id, ®2.str, ®2.value)) { PRINTF("Please input an account id, a variable and the value for this variable.\n"_fmt); PRINTF("<example> setaccreg2 2000000 ##GLOBAL 111\n"_fmt); - LADMIN_LOG("Incomplete parameters to modify or add a accreg2 of an account ('set' command).\n"_fmt); + LADMIN_LOG("Incomplete parameters to modify or add a login-stored ##register of an account ('set' command).\n"_fmt); return; } - + Packet_Fixed<0x795a> fixed_5a; fixed_5a.account_id = account_id; fixed_5a.name = reg2.str; @@ -1578,22 +1578,22 @@ void set_accreg2(ZString param) } //----------------------------------------------- -// Sub-function: Delete a reg2 +// Sub-function: Delete a login-stored ##register //----------------------------------------------- static void del_accreg2(ZString param) { AccountId account_id; GlobalReg reg2; - + if (!qsplit(param, &account_id, ®2.str)) { PRINTF("Please input an account id and a variable to delete.\n"_fmt); PRINTF("<example> delaccreg2 2000000 ##GLOBAL\n"_fmt); - LADMIN_LOG("Incomplete parameters to delete a accreg2 of an account ('del' command).\n"_fmt); + LADMIN_LOG("Incomplete parameters to delete a login-stored ##register of an account ('del' command).\n"_fmt); return; } - + Packet_Fixed<0x795c> fixed_5c; fixed_5c.account_id = account_id; fixed_5c.name = reg2.str; @@ -2652,7 +2652,7 @@ void parse_fromlogin(Session *s) break; } break; - + default: PRINTF("ERROR: Wrong value for operation\n"_fmt); break; |