summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/numericbuilder.h4
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");
}
};