summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-26 05:57:49 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-26 05:57:49 +0000
commitd6840c6147bd21b5a5a42d3fce234e82ba035d18 (patch)
treec083464d6b253dbc7f9d583c145b6a8ed452e07e /src/modules
parent4745f13b70c627ab3e66a8d23d78991be2b9c3a7 (diff)
fix a few confusing returns
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5801 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_silence_ext.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_silence_ext.cpp b/src/modules/m_silence_ext.cpp
index 50810f7d7..370452fd6 100644
--- a/src/modules/m_silence_ext.cpp
+++ b/src/modules/m_silence_ext.cpp
@@ -345,12 +345,12 @@ class ModuleSilence : public Module
if ((chan->modes[CM_NOEXTERNAL]) && (!chan->HasUser(user)))
{
user->WriteServ("404 %s %s :Cannot send to channel (no external messages)", user->nick, chan->name);
- return CMD_FAILURE;
+ return 1;
}
if ((chan->modes[CM_MODERATED]) && (chan->GetStatus(user) < STATUS_VOICE))
{
user->WriteServ("404 %s %s :Cannot send to channel (+m)", user->nick, chan->name);
- return CMD_FAILURE;
+ return 1;
}
}
int MOD_RESULT = 0;
@@ -358,14 +358,14 @@ class ModuleSilence : public Module
std::string temp = parameters[1];
FOREACH_RESULT(I_OnUserPreMessage,OnUserPreMessage(user,chan,TYPE_CHANNEL,temp,status));
if (MOD_RESULT) {
- return CMD_FAILURE;
+ return 1;
}
parameters[1] = temp.c_str();
if (temp == "")
{
user->WriteServ("412 %s No text to send", user->nick);
- return CMD_FAILURE;
+ return 1;
}
/* This next call into channel.cpp is the one that gets replaced by our modified method