]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/protocolinterface.h
Clean up the protocol interface
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / protocolinterface.h
index 2b4c4371ff20b4f862b1470ea6358c0b1a167ccb..b48e4542580dae79ccfb87e033805e0f41de8f7e 100644 (file)
 
 #pragma once
 
-class SpanningTreeUtilities;
-class ModuleSpanningTree;
-
 class SpanningTreeProtocolInterface : public ProtocolInterface
 {
-       SpanningTreeUtilities* Utils;
  public:
-       SpanningTreeProtocolInterface(SpanningTreeUtilities* util) : Utils(util) { }
-
        bool SendEncapsulatedData(const parameterlist &encap);
        void SendMetaData(Extensible* target, const std::string &key, const std::string &data);
        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(const std::string &snomask, const std::string &text);
        void PushToClient(User* target, const std::string &rawline);
-       void SendChannelPrivmsg(Channel* target, char status, const std::string &text);
-       void SendChannelNotice(Channel* target, char status, const std::string &text);
-       void SendUserPrivmsg(User* target, const std::string &text);
-       void SendUserNotice(User* target, const std::string &text);
-       void GetServerList(ProtoServerList &sl);
+       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);
 };