From eaea34e987eba0e9cb839e63a9d0abf6c78ab1c4 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 3 Dec 2019 12:02:41 +0000 Subject: [PATCH] Send * for empty targets in the no such nick/channel message. --- include/numericbuilder.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/numericbuilder.h b/include/numericbuilder.h index 4431fbc52..dc95cdaf7 100644 --- a/include/numericbuilder.h +++ b/include/numericbuilder.h @@ -257,7 +257,7 @@ class Numerics::NoSuchChannel : public Numeric::Numeric NoSuchChannel(const std::string& chan) : Numeric(ERR_NOSUCHCHANNEL) { - push(chan); + push(chan.empty() ? "*" : chan); push("No such channel"); } }; @@ -269,7 +269,7 @@ class Numerics::NoSuchNick : public Numeric::Numeric NoSuchNick(const std::string& nick) : Numeric(ERR_NOSUCHNICK) { - push(nick); + push(nick.empty() ? "*" : nick); push("No such nick"); } }; -- 2.39.2