summaryrefslogtreecommitdiff
path: root/include/modules/protocol/ratbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/modules/protocol/ratbox.h')
-rw-r--r--include/modules/protocol/ratbox.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/include/modules/protocol/ratbox.h b/include/modules/protocol/ratbox.h
index 2ad4a5529..ba7a7f19f 100644
--- a/include/modules/protocol/ratbox.h
+++ b/include/modules/protocol/ratbox.h
@@ -24,6 +24,45 @@
namespace ratbox
{
+class Proto : public IRCDProto
+{
+ ServiceReference<IRCDProto> hybrid; // XXX
+
+ ServiceBot *FindIntroduced();
+
+ public:
+ Proto(Module *creator);
+
+ void SendSVSKill(const MessageSource &source, User *targ, const Anope::string &reason) override { hybrid->SendSVSKill(source, targ, reason); }
+ void SendGlobalNotice(ServiceBot *bi, Server *dest, const Anope::string &msg) override { hybrid->SendGlobalNotice(bi, dest, msg); }
+ void SendGlobalPrivmsg(ServiceBot *bi, Server *dest, const Anope::string &msg) override { hybrid->SendGlobalPrivmsg(bi, dest, msg); }
+ void SendSGLine(User *u, XLine *x) override { hybrid->SendSGLine(u, x); }
+ void SendSGLineDel(XLine *x) override { hybrid->SendSGLineDel(x); }
+ void SendAkill(User *u, XLine *x) override { hybrid->SendAkill(u, x); }
+ void SendAkillDel(XLine *x) override { hybrid->SendAkillDel(x); }
+ void SendJoin(User *user, Channel *c, const ChannelStatus *status) override { hybrid->SendJoin(user, c, status); }
+ void SendServer(Server *server) override { hybrid->SendServer(server); }
+ void SendMode(const MessageSource &source, User *u, const Anope::string &buf) override { hybrid->SendMode(source, u, buf); }
+ void SendChannel(Channel *c) override { hybrid->SendChannel(c); }
+ bool IsIdentValid(const Anope::string &ident) override { return hybrid->IsIdentValid(ident); }
+
+ void SendGlobops(const MessageSource &source, const Anope::string &buf) override;
+
+ void SendConnect() override;
+
+ void SendClientIntroduction(User *u) override;
+
+ void SendLogin(User *u, NickServ::Nick *na) override;
+
+ void SendLogout(User *u) override;
+
+ void SendTopic(const MessageSource &source, Channel *c) override;
+
+ void SendSQLine(User *, XLine *x) override;
+
+ void SendSQLineDel(XLine *x) override;
+};
+
class Encap : public IRCDMessage
{
public: