]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_samode.cpp
Remove SpanningTreeProtocolInterface::SendOperNotice - it was translated to a SendSNO...
[user/henk/code/inspircd.git] / src / modules / m_samode.cpp
index 2b8ae9b4fbe1df38d8cf7f01b89d66d4753acc4b..3dcd48ca5e872260f075a944240b65fab8a60887 100644 (file)
@@ -39,21 +39,17 @@ class CommandSamode : public Command
 
                        std::deque<std::string> n;
                        irc::spacesepstream spaced(ServerInstance->Modes->GetLastParse());
-                       std::string one = "*";
+                       std::string one;
                        while (spaced.GetToken(one))
                                n.push_back(one);
 
-                       Event rmode((char *)&n, NULL, "send_mode");
-                       rmode.Send(ServerInstance);
-
-                       n.clear();
-                       n.push_back(std::string(user->nick) + " used SAMODE: " + ServerInstance->Modes->GetLastParse());
-                       Event rmode2((char *)&n, NULL, "send_opers");
-                       rmode2.Send(ServerInstance);
+                       std::string channel = n[0];
+                       n.pop_front();
+                       ServerInstance->PI->SendMode(channel, n);
 
                        /* XXX: Yes, this is right. We dont want to propagate the
                         * actual SAMODE command, just the MODE command generated
-                        * by the send_mode
+                        * by the Protocol Interface
                         */
                        return CMD_LOCALONLY;
                }