summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-12-22 12:12:36 +0000
committerGitHub <noreply@github.com>2017-12-22 12:12:36 +0000
commitc8f515121fbdf3e4de693712ef2311cece45477d (patch)
treed92941491ef510a9ec8ff317a9002429ae96a33e /include
parente467fd0a6fc9ba97b2e2f31e654803a86bbb307f (diff)
parent026c579e4cac7d4545b3c8c3a0d690c8509dc713 (diff)
Merge pull request #1446 from B00mX0r/master+wrongnumeric
Fixed misc. instances of ERR_NOSUCHNICK instead of channel numerics Closes #1122.
Diffstat (limited to 'include')
-rw-r--r--include/numeric.h17
-rw-r--r--include/numerics.h1
2 files changed, 15 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");
}
};
}
diff --git a/include/numerics.h b/include/numerics.h
index 8befdab2e..57ecee4df 100644
--- a/include/numerics.h
+++ b/include/numerics.h
@@ -161,6 +161,7 @@ enum
* -- A message from the IRC group for coder sanity, and w00t
*/
ERR_BADCHANNELKEY = 475,
+ ERR_BADCHANMASK = 476,
ERR_INVITEONLYCHAN = 473,
ERR_CHANNELISFULL = 471,
ERR_BANNEDFROMCHAN = 474,