From ee73b48c52cedb53381b6c0291693fa1e2a66d2c Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Mon, 5 Aug 2019 09:58:22 +0100 Subject: [PATCH] Don't print strange-looking "Usertags are now: ." message when removing all usertags. --- scripts/service | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/service b/scripts/service index 7e4c205..cdb70bb 100755 --- a/scripts/service +++ b/scripts/service @@ -455,7 +455,11 @@ END } else { print {$transcript} "Usertags were: " . join(" ", @oldtags) . ".\n"; } - print {$transcript} "Usertags are now: " . join(" ", @newtags) . ".\n"; + if (@newtags == 0) { + print {$transcript} "There are now no usertags set.\n"; + } else { + print {$transcript} "Usertags are now: " . join(" ", @newtags) . ".\n"; + } Debbugs::User::write_usertags(\%ut, $user); } } elsif (!$control) { -- 2.39.2