summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-10 16:17:16 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-10 16:17:16 +0000
commitfe39b96db7735ceb243f1f09e3d41633d803445f (patch)
treefc52494d6f235aa3bcf7b0e4ebe89726e60e5c21 /src
parente225e7e6286adafb7c720e7718cd758556be352e (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')
-rw-r--r--src/core/cs_status.c2
-rw-r--r--src/core/cs_suspend.c4
-rw-r--r--src/core/cs_topic.c2
-rw-r--r--src/core/cs_xop.c20
-rw-r--r--src/core/he_help.c2
-rw-r--r--src/core/hs_del.c2
-rw-r--r--src/core/hs_delall.c2
-rw-r--r--src/core/hs_group.c2
-rw-r--r--src/core/hs_help.c2
-rw-r--r--src/core/hs_list.c2
-rw-r--r--src/core/hs_off.c2
-rw-r--r--src/core/hs_on.c2
-rw-r--r--src/core/hs_set.c2
-rw-r--r--src/core/hs_setall.c2
-rw-r--r--src/core/ms_cancel.c2
-rw-r--r--src/core/ms_check.c2
-rw-r--r--src/core/ms_del.c2
-rw-r--r--src/core/ms_help.c2
-rw-r--r--src/core/ms_info.c2
-rw-r--r--src/core/ms_list.c2
-rw-r--r--src/core/ms_read.c2
-rw-r--r--src/core/ms_rsend.c2
-rw-r--r--src/core/ms_send.c2
-rw-r--r--src/core/ms_sendall.c2
-rw-r--r--src/core/ms_set.c6
-rw-r--r--src/core/ms_staff.c2
-rw-r--r--src/core/ns_access.c10
-rw-r--r--src/core/ns_alist.c2
-rw-r--r--src/core/ns_drop.c2
-rw-r--r--src/core/ns_forbid.c2
-rw-r--r--src/core/ns_getemail.c2
-rw-r--r--src/core/ns_getpass.c2
-rw-r--r--src/core/ns_ghost.c2
-rw-r--r--src/core/ns_group.c4
-rw-r--r--src/core/ns_help.c2
-rw-r--r--src/core/ns_identify.c2
-rw-r--r--src/core/ns_info.c2
-rw-r--r--src/core/ns_list.c2
-rw-r--r--src/core/ns_logout.c2
-rw-r--r--src/core/ns_recover.c2
-rw-r--r--src/core/ns_register.c8
-rw-r--r--src/core/ns_release.c2
-rw-r--r--src/core/ns_saset.c30
-rw-r--r--src/core/ns_sendpass.c2
-rw-r--r--src/core/ns_set.c28
-rw-r--r--src/core/ns_status.c2
-rw-r--r--src/core/ns_suspend.c4
-rw-r--r--src/core/os_admin.c10
-rw-r--r--src/core/os_akill.c12
-rw-r--r--src/core/os_chankill.c2
-rw-r--r--src/core/os_chanlist.c2
-rw-r--r--src/core/os_clearmodes.c2
-rw-r--r--src/core/os_defcon.c2
-rw-r--r--src/core/os_global.c2
-rw-r--r--src/core/os_help.c2
-rw-r--r--src/core/os_ignore.c10
-rw-r--r--src/core/os_jupe.c2
-rw-r--r--src/core/os_kick.c2
-rw-r--r--src/core/os_mode.c2
-rw-r--r--src/core/os_modinfo.c2
-rw-r--r--src/core/os_modlist.c2
-rw-r--r--src/core/os_modload.c2
-rw-r--r--src/core/os_modunload.c2
-rw-r--r--src/core/os_news.c16
-rw-r--r--src/core/os_noop.c2
-rw-r--r--src/core/os_oline.c2
-rw-r--r--src/core/os_oper.c10
-rw-r--r--src/core/os_quit.c2
-rw-r--r--src/core/os_raw.c2
-rw-r--r--src/core/os_reload.c2
-rw-r--r--src/core/os_restart.c2
-rw-r--r--src/core/os_session.c18
-rw-r--r--src/core/os_set.c16
-rw-r--r--src/core/os_sgline.c12
-rw-r--r--src/core/os_shutdown.c2
-rw-r--r--src/core/os_sqline.c12
-rw-r--r--src/core/os_staff.c2
-rw-r--r--src/core/os_stats.c12
-rw-r--r--src/core/os_svsnick.c2
-rw-r--r--src/core/os_szline.c12
-rw-r--r--src/core/os_umode.c2
-rw-r--r--src/core/os_update.c2
-rw-r--r--src/core/ss_main.c2
-rw-r--r--src/modules/cs_appendtopic.c2
-rw-r--r--src/modules/cs_enforce.c2
-rw-r--r--src/modules/cs_tban.c2
-rw-r--r--src/modules/hs_request.c14
-rw-r--r--src/modules/ns_maxemail.c4
-rw-r--r--src/modules/os_info.c16
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> &params)
+ CommandReturn Execute(User *u, std::vector<std::string> &params)
{
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> &params)
+ CommandReturn Execute(User *u, std::vector<std::string> &params)
{
ChannelInfo *ci;
char *chan = params[0].c_str();
@@ -126,7 +126,7 @@ class CommandCSUnSuspend : public Command
{
}
- CommandResult Execute(User *u, std::vector<std::string> &params)
+ CommandReturn Execute(User *u, std::vector<std::string> &params)
{
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> &params)
+ CommandReturn Execute(User *u, std::vector<std::string> &params)
{
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> &params, ChannelInfo *ci, int level, int *messages)
+ CommandReturn DoAdd(User *u, std::vector<std::string> &params, 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> &params, ChannelInfo *ci, int level, int *messages)
+ CommandReturn DoDel(User *u, std::vector<std::string> &params, 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> &params, ChannelInfo *ci, int level, int *messages)
+ CommandReturn DoList(User *u, std::vector<std::string> &params, 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> &params, ChannelInfo *ci, int level, int *messages)
+ CommandReturn DoClear(User *u, std::vector<std::string> &params, 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> &params, int level, int *messages)
+ CommandReturn DoXop(User *u, std::vector<std::string> &params, 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> &params) = 0;
+ virtual CommandReturn Execute(User *u, std::vector<std::string> &params) = 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> &params)
+ CommandReturn Execute(User *u, std::vector<std::string> &params)
{
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> &params)
+ CommandReturn Execute(User *u, std::vector<std::string> &params)
{
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> &params)
+ CommandReturn Execute(User *u, std::vector<std::string> &params)
{
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> &params)
+ CommandReturn Execute(User *u, std::vector<std::string> &params)
{
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> &params)
+ CommandReturn Execute(User *u, std::vector<std::string> &params)
{
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> &params)
+ CommandReturn Execute(User *u, std::vector<std::string> &params)
{
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> &params)
+ CommandReturn Execute(User *u, std::vector<std::string> &params)
{
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> &params)
+ CommandReturn Execute(User *u, std::vector<std::string> &params)
{
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> &params)
+ CommandReturn Execute(User *u, std::vector<std::string> &params)
{
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> &params)
+ CommandReturn Execute(User *u, std::vector<std::string> &params)
{
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> &params)
+ CommandReturn Execute(User *u, std::vector<std::string> &params)
{
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> &params)
+ CommandReturn Execute(User *u, std::vector<std::string> &params)
{
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> &params)
+ CommandReturn Execute(User *u, std::vector<std::string> &params)
{
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> &params)
+ CommandReturn Execute(User *u, std::vector<std::string> &params)
{
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> &params)
+ CommandReturn Execute(User *u, std::vector<std::string> &params)
{
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> &params)
+ CommandReturn Execute(User *u, std::vector<std::string> &params)
{
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> &params)
+ CommandReturn Execute(User *u, std::vector<std::string> &params)
{
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> &params)
+ CommandReturn Execute(User *u, std::vector<