]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove ProtocolInterface::PushToClient()
authorAttila Molnar <attilamolnar@hush.com>
Wed, 30 Mar 2016 10:38:36 +0000 (12:38 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Wed, 30 Mar 2016 10:38:36 +0000 (12:38 +0200)
include/protocol.h
src/modules/m_spanningtree/protocolinterface.cpp
src/modules/m_spanningtree/protocolinterface.h

index 2b1ffb7536a6f67543b3e41992ab2d6ec241e21f..b3f209a8266dd6d493a47122075fcb0209db4b35 100644 (file)
@@ -110,12 +110,6 @@ class CoreExport ProtocolInterface
         */
        virtual void SendSNONotice(char snomask, const std::string& text) { }
 
-       /** Send raw data to a remote client.
-        * @param target The user to push data to.
-        * @param rawline The raw IRC protocol line to deliver (":me NOTICE you :foo", whatever).
-        */
-       virtual void PushToClient(User* target, const std::string &rawline) { }
-
        /** Send a message to a channel.
         * @param target The channel to message.
         * @param status The status character (e.g. %) required to recieve.
index 786f8b74b4056e200c26ec75c78f8c27ff0b303e..957638517bd083e994f5cfe8c610c805f9aaafb3 100644 (file)
@@ -112,11 +112,6 @@ void SpanningTreeProtocolInterface::SendSNONotice(char snomask, const std::strin
        CmdBuilder("SNONOTICE").push(snomask).push_last(text).Broadcast();
 }
 
-void SpanningTreeProtocolInterface::PushToClient(User* target, const std::string &rawline)
-{
-       CmdBuilder("PUSH").push(target->uuid).push_last(rawline).Unicast(target);
-}
-
 void SpanningTreeProtocolInterface::SendMessage(Channel* target, char status, const std::string& text, MessageType msgtype)
 {
        const char* cmd = (msgtype == MSG_PRIVMSG ? "PRIVMSG" : "NOTICE");
index 45742e9eaa0374753959ad61ac3cae822339fd96..c86ca007c07a886461144797ce56268b35251311 100644 (file)
@@ -38,7 +38,6 @@ class SpanningTreeProtocolInterface : public ProtocolInterface
        void SendMetaData(const std::string& key, const std::string& data) CXX11_OVERRIDE;
        void SendTopic(Channel* channel, std::string &topic);
        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);
        void SendMessage(User* target, const std::string& text, MessageType msgtype);
        void GetServerList(ServerList& sl);