diff --git a/src/Commands.pm b/src/Commands.pm index c0fb585df2..bf735fecb8 100644 --- a/src/Commands.pm +++ b/src/Commands.pm @@ -5031,9 +5031,6 @@ sub cmdSell { } elsif ($args[0] eq "done") { completeNpcSell(\@sellList); - @sellList = (); - message TF("Sold %s items.\n", @sellList.""), "success"; - } elsif ($args[0] eq "cancel") { @sellList = (); completeNpcSell(\@sellList); diff --git a/src/Network/Receive.pm b/src/Network/Receive.pm index 050f040206..39f892b1a6 100644 --- a/src/Network/Receive.pm +++ b/src/Network/Receive.pm @@ -9363,9 +9363,11 @@ sub sell_result { my ($self, $args) = @_; if ($args->{fail}) { error T("Sell failed.\n"); - } else { + } else { + message TF("Sold %s items.\n", @sellList.""), "success"; message T("Sell completed.\n"), "success"; } + @sellList = (); if (AI::is("sellAuto")) { AI::args->{recv_sell_packet} = 1; }