diff options
author | HoraK-FDF <horak-fdf@web.de> | 2022-10-23 17:14:05 +0200 |
---|---|---|
committer | HoraK-FDF <horak-fdf@web.de> | 2022-10-23 17:14:05 +0200 |
commit | 349ef9183fc18d2174dfd9d2a2a0cbb510d00fc1 (patch) | |
tree | be4edd2cc6bd412f58cc0461afc766c8906e15f5 | |
parent | 75d3bb85372ca317134d8095320fc380fa9baf40 (diff) | |
download | tmwa-349ef9183fc18d2174dfd9d2a2a0cbb510d00fc1.tar.gz tmwa-349ef9183fc18d2174dfd9d2a2a0cbb510d00fc1.tar.bz2 tmwa-349ef9183fc18d2174dfd9d2a2a0cbb510d00fc1.tar.xz tmwa-349ef9183fc18d2174dfd9d2a2a0cbb510d00fc1.zip |
tmwa-admin reg2 fix
-rw-r--r-- | src/admin/ladmin.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/admin/ladmin.cpp b/src/admin/ladmin.cpp index c51fc3a..a75d377 100644 --- a/src/admin/ladmin.cpp +++ b/src/admin/ladmin.cpp @@ -553,21 +553,21 @@ void display_help(ZString param) || command == "get"_s || command == "g"_s) { - PRINTF("getaccreg2/get/g <account id>\n"_fmt); + PRINTF("getaccreg2/get/g <account id> <variable>\n"_fmt); PRINTF(" Display a reg2\n"_fmt); } else if (command == "setaccreg2"_s || command == "set"_s || command == "s"_s) { - PRINTF("setaccreg2/set/s <account id>\n"_fmt); + PRINTF("setaccreg2/set/s <account id> <variable> <value>\n"_fmt); PRINTF(" Modify or add a reg2\n"_fmt); } else if (command == "delaccreg2"_s || command == "del"_s || command == "d"_s) { - PRINTF("delaccreg2/del/d <account id>\n"_fmt); + PRINTF("delaccreg2/del/d <account id> <variable>\n"_fmt); PRINTF(" Delete a reg2\n"_fmt); } else @@ -613,9 +613,9 @@ void display_help(ZString param) 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> -- Display a reg2\n"_fmt); - PRINTF(" setaccreg2/set/s <account id> -- Modify or add a reg2\n"_fmt); - PRINTF(" delaccreg2/del/d <account id> -- Delete a 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(" Note: To use spaces in an account name, type \"<account name>\" (or ').\n"_fmt); } } @@ -1541,7 +1541,7 @@ void get_accreg2(ZString param) { 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 change the state of an account ('block' command).\n"_fmt); + LADMIN_LOG("Incomplete parameters to get a accreg2 of an account ('get' command).\n"_fmt); return; } @@ -1565,7 +1565,7 @@ void set_accreg2(ZString param) { 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 change the state of an account ('block' command).\n"_fmt); + LADMIN_LOG("Incomplete parameters to modify or add a accreg2 of an account ('set' command).\n"_fmt); return; } @@ -1590,7 +1590,7 @@ void del_accreg2(ZString param) { 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 change the state of an account ('block' command).\n"_fmt); + LADMIN_LOG("Incomplete parameters to delete a accreg2 of an account ('del' command).\n"_fmt); return; } @@ -2575,8 +2575,8 @@ void parse_fromlogin(Session *s) auto jlim = std::min(repeat.size(), ACCOUNT_REG2_NUM); for (size_t j = 0; j < jlim; ++j) PRINTF("Variable %s == `%i`\n"_fmt, repeat[j].name, repeat[j].value); - bytes_to_read = 0; } + bytes_to_read = 0; break; } |