diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-12 00:28:05 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-12 00:28:05 +0000 |
commit | 848c0aaa212f6e5e69a30d14e36772ffd2d421c7 (patch) | |
tree | c1fee3ebba7cfe38ca42b2afb199339f94631d2a /src/core/cs_xop.c | |
parent | d16f4930f462386a5ad5507e56c07ac6610ac2bb (diff) |
Made Command::Execute's params const
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2644 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/cs_xop.c')
-rw-r--r-- | src/core/cs_xop.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/core/cs_xop.c b/src/core/cs_xop.c index 81dd80224..9d489d555 100644 --- a/src/core/cs_xop.c +++ b/src/core/cs_xop.c @@ -118,7 +118,7 @@ int xop_msgs[XOP_TYPES][XOP_MESSAGES] = { class XOPBase : public Command { private: - CommandReturn DoAdd(User *u, std::vector<ci::string> ¶ms, ChannelInfo *ci, int level, int *messages) + CommandReturn DoAdd(User *u, const std::vector<ci::string> ¶ms, ChannelInfo *ci, int level, int *messages) { const char *nick = params.size() > 2 ? params[2].c_str() : NULL; ChanAccess *access; @@ -205,7 +205,7 @@ class XOPBase : public Command return MOD_CONT; } - CommandReturn DoDel(User *u, std::vector<ci::string> ¶ms, ChannelInfo *ci, int level, int *messages) + CommandReturn DoDel(User *u, const std::vector<ci::string> ¶ms, ChannelInfo *ci, int level, int *messages) { const char *nick = params.size() > 2 ? params[2].c_str() : NULL; ChanAccess *access; @@ -304,7 +304,7 @@ class XOPBase : public Command return MOD_CONT; } - CommandReturn DoList(User *u, std::vector<ci::string> ¶ms, ChannelInfo *ci, int level, int *messages) + CommandReturn DoList(User *u, const std::vector<ci::string> ¶ms, ChannelInfo *ci, int level, int *messages) { int sent_header = 0; const char *nick = params.size() > 2 ? params[2].c_str() : NULL; @@ -339,7 +339,7 @@ class XOPBase : public Command return MOD_CONT; } - CommandReturn DoClear(User *u, std::vector<ci::string> ¶ms, ChannelInfo *ci, int level, int *messages) + CommandReturn DoClear(User *u, const std::vector<ci::string> ¶ms, ChannelInfo *ci, int level, int *messages) { if (readonly) { @@ -373,7 +373,7 @@ class XOPBase : public Command return MOD_CONT; } protected: - CommandReturn DoXop(User *u, std::vector<ci::string> ¶ms, int level, int *messages) + CommandReturn DoXop(User *u, const std::vector<ci::string> ¶ms, int level, int *messages) { const char *chan = params[0].c_str(); ci::string cmd = params[1]; @@ -403,7 +403,7 @@ class XOPBase : public Command { } - virtual CommandReturn Execute(User *u, std::vector<ci::string> ¶ms) = 0; + virtual CommandReturn Execute(User *u, const std::vector<ci::string> ¶ms) = 0; virtual bool OnHelp(User *u, const ci::string &subcommand) = 0; @@ -417,7 +417,7 @@ class CommandCSQOP : public XOPBase { } - CommandReturn Execute(User *u, std::vector<ci::string> ¶ms) + CommandReturn Execute(User *u, const std::vector<ci::string> ¶ms) { return this->DoXop(u, params, ACCESS_QOP, xop_msgs[XOP_QOP]); } @@ -441,7 +441,7 @@ class CommandCSAOP : public XOPBase { } - CommandReturn Execute(User *u, std::vector<ci::string> ¶ms) + CommandReturn Execute(User *u, const std::vector<ci::string> ¶ms) { return this->DoXop(u, params, ACCESS_AOP, xop_msgs[XOP_AOP]); } @@ -465,7 +465,7 @@ class CommandCSHOP : public XOPBase { } - CommandReturn Execute(User *u, std::vector<ci::string> ¶ms) + CommandReturn Execute(User *u, const std::vector<ci::string> ¶ms) { return this->DoXop(u, params, ACCESS_HOP, xop_msgs[XOP_HOP]); } @@ -489,7 +489,7 @@ class CommandCSSOP : public XOPBase { } - CommandReturn Execute(User *u, std::vector<ci::string> ¶ms) + CommandReturn Execute(User *u, const std::vector<ci::string> ¶ms) { return this->DoXop(u, params, ACCESS_SOP, xop_msgs[XOP_SOP]); } @@ -513,7 +513,7 @@ class CommandCSVOP : public XOPBase { } - CommandReturn Execute(User *u, std::vector<ci::string> ¶ms) + CommandReturn Execute(User *u, const std::vector<ci::string> ¶ms) { return this->DoXop(u, params, ACCESS_VOP, xop_msgs[XOP_VOP]); } |