]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove ProtocolInterface::SendMode()
authorAttila Molnar <attilamolnar@hush.com>
Wed, 3 Sep 2014 12:28:13 +0000 (14:28 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Wed, 3 Sep 2014 12:28:13 +0000 (14:28 +0200)
include/protocol.h
src/mode.cpp
src/modules/m_spanningtree/protocolinterface.cpp
src/modules/m_spanningtree/protocolinterface.h

index 01eb145f176200914e364ed9b5d14f4b9e45a96b..2b1ffb7536a6f67543b3e41992ab2d6ec241e21f 100644 (file)
@@ -104,15 +104,6 @@ class CoreExport ProtocolInterface
         */
        virtual void SendTopic(Channel* channel, std::string &topic) { }
 
-       /** Send mode changes for an object.
-        * @param source The source of the mode change
-        * @param usertarget The target user, NULL if the target is a channel
-        * @param chantarget The target channel, NULL if the target is a user
-        * @param modedata The mode changes to send.
-        * @param translate A list of translation types
-        */
-       virtual void SendMode(User* source, User* usertarget, Channel* chantarget, const parameterlist& modedata, const std::vector<TranslateType>& translate) { }
-
        /** Send a notice to users with a given snomask.
         * @param snomask The snomask required for the message to be sent.
         * @param text The message to send.
index 66ce313f4006a34f9f44cc397a47728f885d0fef..8081188f568e4a6f2ca4874ad6264448148da529 100644 (file)
@@ -495,9 +495,6 @@ void ModeParser::Process(const std::vector<std::string>& parameters, User* user,
                LastParse.append(output_mode);
                LastParse.append(output_parameters);
 
-               if (!(flags & MODE_LOCALONLY))
-                       ServerInstance->PI->SendMode(user, targetuser, targetchannel, LastParseParams, LastParseTranslate);
-
                if (targetchannel)
                        targetchannel->WriteChannel(user, "MODE " + LastParse);
                else
index 3ad75a430b48ab0f9d18277696be590be4bb8fcc..786f8b74b4056e200c26ec75c78f8c27ff0b303e 100644 (file)
@@ -107,10 +107,6 @@ void SpanningTreeProtocolInterface::SendTopic(Channel* channel, std::string &top
        CommandFTopic::Builder(ServerInstance->FakeClient, channel).Broadcast();
 }
 
-void SpanningTreeProtocolInterface::SendMode(User* source, User* u, Channel* c, const std::vector<std::string>& modedata, const std::vector<TranslateType>& translate)
-{
-}
-
 void SpanningTreeProtocolInterface::SendSNONotice(char snomask, const std::string &text)
 {
        CmdBuilder("SNONOTICE").push(snomask).push_last(text).Broadcast();
index 97648f4b46434384b88b5c6d80b7a471f44cddcc..45742e9eaa0374753959ad61ac3cae822339fd96 100644 (file)
@@ -37,7 +37,6 @@ class SpanningTreeProtocolInterface : public ProtocolInterface
        void SendMetaData(Channel* chan, const std::string& key, const std::string& data) CXX11_OVERRIDE;
        void SendMetaData(const std::string& key, const std::string& data) CXX11_OVERRIDE;
        void SendTopic(Channel* channel, std::string &topic);
-       void SendMode(User* source, User* usertarget, Channel* chantarget, const parameterlist& modedata, const std::vector<TranslateType>& types);
        void SendSNONotice(char snomask, const std::string& text) CXX11_OVERRIDE;
        void PushToClient(User* target, const std::string &rawline);
        void SendMessage(Channel* target, char status, const std::string& text, MessageType msgtype);