mirror of
https://oauth2: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@github.com/m1ngsama/TNT.git
synced 2026-06-26 22:54:39 +08:00
Show empty inbox after clearing
This commit is contained in:
parent
7ff9474a5d
commit
bacfe1ef4b
2 changed files with 4 additions and 0 deletions
|
|
@ -385,9 +385,12 @@ void commands_dispatch(client_t *client) {
|
||||||
while (*inbox_arg == ' ') inbox_arg++;
|
while (*inbox_arg == ' ') inbox_arg++;
|
||||||
if (strcmp(inbox_arg, "clear") == 0) {
|
if (strcmp(inbox_arg, "clear") == 0) {
|
||||||
clear_inbox(client);
|
clear_inbox(client);
|
||||||
|
output_kind = TNT_COMMAND_OUTPUT_INBOX;
|
||||||
buffer_appendf(output, sizeof(output), &pos, "%s",
|
buffer_appendf(output, sizeof(output), &pos, "%s",
|
||||||
i18n_text(client->ui_lang,
|
i18n_text(client->ui_lang,
|
||||||
I18N_INBOX_CLEARED));
|
I18N_INBOX_CLEARED));
|
||||||
|
buffer_appendf(output, sizeof(output), &pos, "\n");
|
||||||
|
append_inbox_output(client, output, sizeof(output), &pos);
|
||||||
} else {
|
} else {
|
||||||
output_kind = TNT_COMMAND_OUTPUT_INBOX;
|
output_kind = TNT_COMMAND_OUTPUT_INBOX;
|
||||||
append_inbox_output(client, output, sizeof(output), &pos);
|
append_inbox_output(client, output, sizeof(output), &pos);
|
||||||
|
|
|
||||||
|
|
@ -240,6 +240,7 @@ send -- ":"
|
||||||
expect ":"
|
expect ":"
|
||||||
send -- "inbox clear\r"
|
send -- "inbox clear\r"
|
||||||
expect "私信已清空"
|
expect "私信已清空"
|
||||||
|
expect "(空)"
|
||||||
expect "q:关闭"
|
expect "q:关闭"
|
||||||
send -- "q"
|
send -- "q"
|
||||||
expect "NORMAL"
|
expect "NORMAL"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue