X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fprotocol.h;h=87d4ea384bb23c469ece668544276087c7aaaba3;hb=ada434820d2d81d8e4bcf633ebcbfef20606b51c;hp=6f9cf8022eba3664e7a0fec5e9d4fdeca608c019;hpb=001861f5d2aca21531b0a20a46e44654a45a5522;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/protocol.h b/include/protocol.h index 6f9cf8022..87d4ea384 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -17,9 +17,22 @@ #include "hashcomp.h" class InspIRCd; +class User; 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 +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