]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/protocol.h
Add ProtocolInterface::Introduce() to prevent confusion over event ordering, and...
[user/henk/code/inspircd.git] / include / protocol.h
index 6f9cf8022eba3664e7a0fec5e9d4fdeca608c019..87d4ea384bb23c469ece668544276087c7aaaba3 100644 (file)
 #include "hashcomp.h"
 
 class InspIRCd;
+class User;
 
 typedef std::deque<std::string> parameterlist;
 
+class ProtoServer
+{
+ public:
+       std::string servername;
+       std::string parentname;
+       unsigned int usercount;
+       unsigned int opercount;
+       unsigned int latencyms;
+};
+
+typedef std::list<ProtoServer> ProtoServerList;
+
 class ProtocolInterface : public Extensible
 {
  protected:
@@ -47,8 +60,6 @@ class ProtocolInterface : public Extensible
                SendMode(target, n);
        }
 
-       virtual void SendOperNotice(const std::string &text) { }
-
        virtual void SendModeNotice(const std::string &modes, const std::string &text) { }
 
        virtual void SendSNONotice(const std::string &snomask, const std::string &text) { }
@@ -58,6 +69,14 @@ class ProtocolInterface : public Extensible
        virtual void SendChannelPrivmsg(Channel* target, char status, const std::string &text) { }
 
        virtual void SendChannelNotice(Channel* target, char status, const std::string &text) { }
+
+       virtual void SendUserPrivmsg(User* target, const std::string &text) { }
+
+       virtual void SendUserNotice(User* target, const std::string &text) { }
+
+       virtual void GetServerList(ProtoServerList &sl) { }
+
+       virtual void Introduce(User* u) { }
 };
 
 #endif