X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fnumeric.h;h=cc9f9cc9bbd7f7206631b9517e4c6bc6ca136224;hb=20fa9e1038ee3d5c2d0c89bf7e8e6dcda0644aa6;hp=8ea2447bf4663be94b40d478bf849ac898bb30d1;hpb=c8f515121fbdf3e4de693712ef2311cece45477d;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/numeric.h b/include/numeric.h index 8ea2447bf..cc9f9cc9b 100644 --- a/include/numeric.h +++ b/include/numeric.h @@ -34,7 +34,7 @@ class Numeric::Numeric /** Parameters of the numeric */ - std::vector params; + CommandBase::Params params; /** Source server of the numeric, if NULL (the default) then it is the local server */ @@ -78,37 +78,10 @@ class Numeric::Numeric /** Get the parameters of the numeric * @return Parameters of the numeric as a const vector of strings */ - const std::vector& 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& 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"); - } - }; -}