summaryrefslogtreecommitdiff
path: root/include/numeric.h
diff options
context:
space:
mode:
authorB00mX0r <b00mx0r@aureus.pw>2017-12-19 14:15:30 -0800
committerB00mX0r <b00mx0r@aureus.pw>2017-12-22 00:35:09 -0800
commit026c579e4cac7d4545b3c8c3a0d690c8509dc713 (patch)
treed92941491ef510a9ec8ff317a9002429ae96a33e /include/numeric.h
parente467fd0a6fc9ba97b2e2f31e654803a86bbb307f (diff)
Fixed misc. instances of ERR_NOSUCHNICK instead of channel numerics
Per #1122
Diffstat (limited to 'include/numeric.h')
-rw-r--r--include/numeric.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/include/numeric.h b/include/numeric.h
index 8044fe5bf..8ea2447bf 100644
--- a/include/numeric.h
+++ b/include/numeric.h
@@ -88,8 +88,7 @@ class Numeric::Numeric
namespace Numerics
{
- /** ERR_NOSUCHNICK numeric
- */
+ /** Builder for the ERR_NOSUCHNICK numeric. */
class NoSuchNick : public Numeric::Numeric
{
public:
@@ -97,7 +96,19 @@ namespace Numerics
: Numeric(ERR_NOSUCHNICK)
{
push(nick);
- push("No such nick/channel");
+ push("No such nick");
+ }
+ };
+
+ /** Builder for the ERR_NOSUCHCHANNEL numeric. */
+ class NoSuchChannel : public Numeric::Numeric
+ {
+ public:
+ NoSuchChannel(const std::string& chan)
+ : Numeric(ERR_NOSUCHCHANNEL)
+ {
+ push(chan);
+ push("No such channel");
}
};
}