summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}
};