From d6840c6147bd21b5a5a42d3fce234e82ba035d18 Mon Sep 17 00:00:00 2001 From: peavey Date: Sun, 26 Nov 2006 05:57:49 +0000 Subject: fix a few confusing returns git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5801 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_silence_ext.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules') 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 -- cgit v1.2.3