X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fprotocol.h;h=44013a1cac271ca8d6f92163b5d8544c6df89996;hb=0bed81e9d70ad2124f258303cd729f9bb2d02a84;hp=6f9cf8022eba3664e7a0fec5e9d4fdeca608c019;hpb=001861f5d2aca21531b0a20a46e44654a45a5522;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/protocol.h b/include/protocol.h index 6f9cf8022..44013a1ca 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -20,6 +20,18 @@ class InspIRCd; typedef std::deque parameterlist; +class ProtoServer +{ + public: + std::string servername; + std::string parentname; + unsigned int usercount; + unsigned int opercount; + unsigned int latencyms; +}; + +typedef std::list ProtoServerList; + class ProtocolInterface : public Extensible { protected: @@ -47,8 +59,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 +68,12 @@ 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) { } }; #endif