From 349ef9183fc18d2174dfd9d2a2a0cbb510d00fc1 Mon Sep 17 00:00:00 2001 From: HoraK-FDF Date: Sun, 23 Oct 2022 17:14:05 +0200 Subject: tmwa-admin reg2 fix --- src/admin/ladmin.cpp | 20 ++++++++++---------- 1 file 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 \n"_fmt); + PRINTF("getaccreg2/get/g \n"_fmt); PRINTF(" Display a reg2\n"_fmt); } else if (command == "setaccreg2"_s || command == "set"_s || command == "s"_s) { - PRINTF("setaccreg2/set/s \n"_fmt); + PRINTF("setaccreg2/set/s \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 \n"_fmt); + PRINTF("delaccreg2/del/d \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 -- Display all information of an account\n"_fmt); PRINTF(" getallaccreg2/getall/ga -- Display all reg2\n"_fmt); - PRINTF(" getaccreg2/get/g -- Display a reg2\n"_fmt); - PRINTF(" setaccreg2/set/s -- Modify or add a reg2\n"_fmt); - PRINTF(" delaccreg2/del/d -- Delete a reg2\n"_fmt); + PRINTF(" getaccreg2/get/g -- Display a reg2\n"_fmt); + PRINTF(" setaccreg2/set/s -- Modify or add a reg2\n"_fmt); + PRINTF(" delaccreg2/del/d -- Delete a reg2\n"_fmt); PRINTF(" Note: To use spaces in an account name, type \"\" (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(" 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(" 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(" 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; } -- cgit v1.2.3-60-g2f50