diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-10 16:17:16 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-10 16:17:16 +0000 |
commit | fe39b96db7735ceb243f1f09e3d41633d803445f (patch) | |
tree | fc52494d6f235aa3bcf7b0e4ebe89726e60e5c21 /src/core/cs_xop.c | |
parent | e225e7e6286adafb7c720e7718cd758556be352e (diff) |
Fix modules to use the right type (CommandReturn, not CommandResult)
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1977 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/cs_xop.c')
-rw-r--r-- | src/core/cs_xop.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/core/cs_xop.c b/src/core/cs_xop.c index eea75018b..e1168f142 100644 --- a/src/core/cs_xop.c +++ b/src/core/cs_xop.c @@ -102,7 +102,7 @@ int xop_msgs[XOP_TYPES][XOP_MESSAGES] = { class XOPBase : public Command { private: - CommandResult DoAdd(User *u, std::vector<std::string> ¶ms, ChannelInfo *ci, int level, int *messages) + CommandReturn DoAdd(User *u, std::vector<std::string> ¶ms, ChannelInfo *ci, int level, int *messages) { const char *nick = params.size() > 2 ? params[2].c_str() : NULL; ChanAccess *access; @@ -198,7 +198,7 @@ class XOPBase : public Command return MOD_CONT; } - CommandResult DoDel(User *u, std::vector<std::string> ¶ms, ChannelInfo *ci, int level, int *messages) + CommandReturn DoDel(User *u, std::vector<std::string> ¶ms, ChannelInfo *ci, int level, int *messages) { const char *nick = params.size() > 2 ? params[2].c_str() : NULL; ChanAccess *access; @@ -329,7 +329,7 @@ class XOPBase : public Command return MOD_CONT; } - CommandResult DoList(User *u, std::vector<std::string> ¶ms, ChannelInfo *ci, int level, int *messages) + CommandReturn DoList(User *u, std::vector<std::string> ¶ms, ChannelInfo *ci, int level, int *messages) { int sent_header = 0; const char *nick = params.size() > 2 ? params[2].c_str() : NULL; @@ -365,7 +365,7 @@ class XOPBase : public Command return MOD_CONT; } - CommandResult DoClear(User *u, std::vector<std::string> ¶ms, ChannelInfo *ci, int level, int *messages) + CommandReturn DoClear(User *u, std::vector<std::string> ¶ms, ChannelInfo *ci, int level, int *messages) { if (readonly) { @@ -400,7 +400,7 @@ class XOPBase : public Command return MOD_CONT; } - CommandResult DoXop(User *u, std::vector<std::string> ¶ms, int level, int *messages) + CommandReturn DoXop(User *u, std::vector<std::string> ¶ms, int level, int *messages) { const char *chan = params[0].c_str(); const char *cmd = params[1].c_str(); @@ -434,7 +434,7 @@ class XOPBase : public Command { } - virtual CommandResult Execute(User *u, std::vector<std::string> ¶ms) = 0; + virtual CommandReturn Execute(User *u, std::vector<std::string> ¶ms) = 0; virtual bool OnHelp(User *u, const std::string &subcommand) = 0; @@ -448,7 +448,7 @@ class CommandCSAOP : public XOPBase { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { return this->DoXop(u, params, ACCESS_AOP, xop_msgs[XOP_AOP]); } @@ -472,7 +472,7 @@ class CommandCSHOP : public XOPBase { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { return this->DoXop(u, params, ACCESS_HOP, xop_msgs[XOP_HOP]); } @@ -496,7 +496,7 @@ class CommandCSSOP : public XOPBase { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { return this->DoXop(u, params, ACCESS_SOP, xop_msgs[XOP_SOP]); } @@ -520,7 +520,7 @@ class CommandCSVOP : public XOPBase { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { return this->DoXop(u, params, ACCESS_VOP, xop_msgs[XOP_VOP]); } |