summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-12 15:27:46 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-12 15:27:46 +0000
commit199a7e055c62703eec7358f2736cf35d626a4066 (patch)
tree38884338e6f63399b8d3dbf936a5ce12aa58aa4e /src/modules
parent8e3234c6eb7a0240bd1c218e2a4406b6f4d8afc6 (diff)
Dont propogate failed mode changes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5703 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_samode.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp
index ae90fd239..5fa694ddd 100644
--- a/src/modules/m_samode.cpp
+++ b/src/modules/m_samode.cpp
@@ -60,9 +60,12 @@ class cmd_samode : public command_t
delete n;
if (ServerInstance->Modes->GetLastParse().length())
+ {
ServerInstance->WriteOpers(std::string(user->nick)+" used SAMODE: "+ServerInstance->Modes->GetLastParse());
+ return CMD_SUCCESS;
+ }
- return CMD_SUCCESS;
+ return CMD_FAILURE;
}
};