]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/numeric.h
Use IsCTCP in blockcolor for ignoring CTCPs.
[user/henk/code/inspircd.git] / include / numeric.h
index 8ea2447bf4663be94b40d478bf849ac898bb30d1..3e24c8a82898522f1baa752b8eb7fbd85cead10c 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
+ *   Copyright (C) 2018 Sadie Powell <sadie@witchery.services>
  *   Copyright (C) 2016 Attila Molnar <attilamolnar@hush.com>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
@@ -34,7 +35,7 @@ class Numeric::Numeric
 
        /** Parameters of the numeric
         */
-       std::vector<std::string> params;
+       CommandBase::Params params;
 
        /** Source server of the numeric, if NULL (the default) then it is the local server
         */
@@ -78,37 +79,10 @@ class Numeric::Numeric
        /** Get the parameters of the numeric
         * @return Parameters of the numeric as a const vector of strings
         */
-       const std::vector<std::string>& GetParams() const { return params; }
+       const CommandBase::Params& GetParams() const { return params; }
 
        /** Get the parameters of the numeric
         * @return Parameters of the numeric as a vector of strings
         */
-       std::vector<std::string>& GetParams() { return params; }
+       CommandBase::Params& GetParams() { return params; }
 };
-
-namespace Numerics
-{
-       /** Builder for the ERR_NOSUCHNICK numeric. */
-       class NoSuchNick : public Numeric::Numeric
-       {
-        public:
-               NoSuchNick(const std::string& nick)
-                       : Numeric(ERR_NOSUCHNICK)
-               {
-                       push(nick);
-                       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");
-               }
-       };
-}