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 | |
| 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')
89 files changed, 210 insertions, 210 deletions
diff --git a/src/core/cs_status.c b/src/core/cs_status.c index d1c24b521..34427a523 100644 --- a/src/core/cs_status.c +++ b/src/core/cs_status.c @@ -24,7 +24,7 @@ class CommandCSStatus : public Command { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { ChannelInfo *ci; User *u2; diff --git a/src/core/cs_suspend.c b/src/core/cs_suspend.c index a6d248801..c17a19f02 100644 --- a/src/core/cs_suspend.c +++ b/src/core/cs_suspend.c @@ -24,7 +24,7 @@ class CommandCSSuspend : public Command { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { ChannelInfo *ci; char *chan = params[0].c_str(); @@ -126,7 +126,7 @@ class CommandCSUnSuspend : public Command { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { ChannelInfo *ci; const char *chan = params[0].c_str(); diff --git a/src/core/cs_topic.c b/src/core/cs_topic.c index 6a5af3dec..622fa8b52 100644 --- a/src/core/cs_topic.c +++ b/src/core/cs_topic.c @@ -24,7 +24,7 @@ class CommandCSTopic : public Command { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { char *chan = params[0].c_str(); char *topic = params.size() > 1 ? params[1].c_str() : NULL; 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]); } diff --git a/src/core/he_help.c b/src/core/he_help.c index 5b3f4a129..c4411e711 100644 --- a/src/core/he_help.c +++ b/src/core/he_help.c @@ -22,7 +22,7 @@ class CommandHEHelp : public Command { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { mod_help_cmd(s_HelpServ, u, HELPSERV, params[0].c_str()); return MOD_CONT; diff --git a/src/core/hs_del.c b/src/core/hs_del.c index 3318d0ba6..15f218088 100644 --- a/src/core/hs_del.c +++ b/src/core/hs_del.c @@ -24,7 +24,7 @@ class CommandHSDel : public Command { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { NickAlias *na; const char *nick = params[0].c_str(); diff --git a/src/core/hs_delall.c b/src/core/hs_delall.c index a373ef487..5976100d2 100644 --- a/src/core/hs_delall.c +++ b/src/core/hs_delall.c @@ -24,7 +24,7 @@ class CommandHSDelAll : public Command { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { int i; const char *nick = params[0].c_str(); diff --git a/src/core/hs_group.c b/src/core/hs_group.c index 2a7dd5a57..0d3eb729a 100644 --- a/src/core/hs_group.c +++ b/src/core/hs_group.c @@ -25,7 +25,7 @@ class CommandHSGroup : public Command { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { NickAlias *na; HostCore *tmp; diff --git a/src/core/hs_help.c b/src/core/hs_help.c index 5cc70213c..e1278400a 100644 --- a/src/core/hs_help.c +++ b/src/core/hs_help.c @@ -22,7 +22,7 @@ class CommandHSHelp : public Command { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { mod_help_cmd(s_HostServ, u, HOSTSERV, params[0].c_str()); return MOD_CONT; diff --git a/src/core/hs_list.c b/src/core/hs_list.c index ea7e08967..615d3b0c7 100644 --- a/src/core/hs_list.c +++ b/src/core/hs_list.c @@ -24,7 +24,7 @@ class CommandHSList : public Command { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { const char *key = params.size() ? params[0].c_str() : NULL; struct tm *tm; diff --git a/src/core/hs_off.c b/src/core/hs_off.c index 84639a941..6ba1d77a8 100644 --- a/src/core/hs_off.c +++ b/src/core/hs_off.c @@ -24,7 +24,7 @@ class CommandHSOff : public Command { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { NickAlias *na; char *vhost; diff --git a/src/core/hs_on.c b/src/core/hs_on.c index 1cad7a93c..3050dee32 100644 --- a/src/core/hs_on.c +++ b/src/core/hs_on.c @@ -24,7 +24,7 @@ class CommandHSOn : public Command { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { NickAlias *na; char *vHost; diff --git a/src/core/hs_set.c b/src/core/hs_set.c index 0a63923ba..10a717ae5 100644 --- a/src/core/hs_set.c +++ b/src/core/hs_set.c @@ -24,7 +24,7 @@ class CommandHSSet : public Command { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { const char *nick = params[0].c_str(); const char *rawhostmask = params[1].c_str(); diff --git a/src/core/hs_setall.c b/src/core/hs_setall.c index 09f63c12f..df069101e 100644 --- a/src/core/hs_setall.c +++ b/src/core/hs_setall.c @@ -25,7 +25,7 @@ class CommandHSSetAll : public Command { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { const char *nick = params[0].c_str(); const char *rawhostmask = params[1].c_str(); diff --git a/src/core/ms_cancel.c b/src/core/ms_cancel.c index 63c81ea22..7e569539c 100644 --- a/src/core/ms_cancel.c +++ b/src/core/ms_cancel.c @@ -24,7 +24,7 @@ class CommandMSCancel : public Command { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { int ischan; int isforbid; diff --git a/src/core/ms_check.c b/src/core/ms_check.c index 477ec1517..9bee02764 100644 --- a/src/core/ms_check.c +++ b/src/core/ms_check.c @@ -24,7 +24,7 @@ class CommandMSCheck : public Command { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { NickAlias *na = NULL; MemoInfo *mi = NULL; diff --git a/src/core/ms_del.c b/src/core/ms_del.c index 61188e18b..effb84c4c 100644 --- a/src/core/ms_del.c +++ b/src/core/ms_del.c @@ -25,7 +25,7 @@ class CommandMSDel : public Command { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { MemoInfo *mi; ChannelInfo *ci; diff --git a/src/core/ms_help.c b/src/core/ms_help.c index 4fa4ac783..d76c7515e 100644 --- a/src/core/ms_help.c +++ b/src/core/ms_help.c @@ -22,7 +22,7 @@ class CommandMSHelp : public Command { } - CommandResult Execute(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector< |
