diff options
author | Peter Powell <petpow@saberuk.com> | 2019-12-03 12:02:41 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-12-03 12:09:15 +0000 |
commit | eaea34e987eba0e9cb839e63a9d0abf6c78ab1c4 (patch) | |
tree | a400724b741400b5ffa60727325f57a9dc477fa5 | |
parent | cad88bcffb845801476bfae0ed6751513fa76c78 (diff) |
Send * for empty targets in the no such nick/channel message.
-rw-r--r-- | include/numericbuilder.h | 4 |
1 files 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"); } }; |