summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_samode.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp
index 5fa694ddd..34278101e 100644
--- a/src/modules/m_samode.cpp
+++ b/src/modules/m_samode.cpp
@@ -62,7 +62,21 @@ class cmd_samode : public command_t
if (ServerInstance->Modes->GetLastParse().length())
{
ServerInstance->WriteOpers(std::string(user->nick)+" used SAMODE: "+ServerInstance->Modes->GetLastParse());
- return CMD_SUCCESS;
+
+ std::deque<std::string> n;
+ irc::spacesepstream spaced(ServerInstance->Modes->GetLastParse());
+ std::string one = "*";
+ while ((one = spaced.GetToken()) != "")
+ n.push_back(one);
+
+ Event rmode((char *)&n, NULL, "send_mode_explicit");
+ rmode.Send(ServerInstance);
+
+ /* XXX: Yes, this is right. We dont want to propogate the
+ * actual SAMODE command, just the MODE command generated
+ * by the send_mode_explicit
+ */
+ return CMD_FAILURE;
}
return CMD_FAILURE;