summaryrefslogtreecommitdiff
path: root/include/modules/protocol/charybdis.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/modules/protocol/charybdis.h')
-rw-r--r--include/modules/protocol/charybdis.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/include/modules/protocol/charybdis.h b/include/modules/protocol/charybdis.h
index d65e094a0..ee81a60a1 100644
--- a/include/modules/protocol/charybdis.h
+++ b/include/modules/protocol/charybdis.h
@@ -22,6 +22,52 @@
namespace charybdis
{
+class Proto : public IRCDProto
+{
+ ServiceReference<IRCDProto> ratbox; // XXX
+
+ public:
+ Proto(Module *creator);
+
+ void SendSVSKill(const MessageSource &source, User *targ, const Anope::string &reason) override { ratbox->SendSVSKill(source, targ, reason); }
+ void SendGlobalNotice(ServiceBot *bi, Server *dest, const Anope::string &msg) override { ratbox->SendGlobalNotice(bi, dest, msg); }
+ void SendGlobalPrivmsg(ServiceBot *bi, Server *dest, const Anope::string &msg) override { ratbox->SendGlobalPrivmsg(bi, dest, msg); }
+ void SendGlobops(const MessageSource &source, const Anope::string &buf) override { ratbox->SendGlobops(source, buf); }
+ void SendSGLine(User *u, XLine *x) override { ratbox->SendSGLine(u, x); }
+ void SendSGLineDel(XLine *x) override { ratbox->SendSGLineDel(x); }
+ void SendAkill(User *u, XLine *x) override { ratbox->SendAkill(u, x); }
+ void SendAkillDel(XLine *x) override { ratbox->SendAkillDel(x); }
+ void SendSQLine(User *u, XLine *x) override { ratbox->SendSQLine(u, x); }
+ void SendSQLineDel(XLine *x) override { ratbox->SendSQLineDel(x); }
+ void SendJoin(User *user, Channel *c, const ChannelStatus *status) override { ratbox->SendJoin(user, c, status); }
+ void SendServer(Server *server) override { ratbox->SendServer(server); }
+ void SendChannel(Channel *c) override { ratbox->SendChannel(c); }
+ void SendTopic(const MessageSource &source, Channel *c) override { ratbox->SendTopic(source, c); }
+ bool IsIdentValid(const Anope::string &ident) override { return ratbox->IsIdentValid(ident); }
+ void SendLogin(User *u, NickServ::Nick *na) override { ratbox->SendLogin(u, na); }
+ void SendLogout(User *u) override { ratbox->SendLogout(u); }
+
+ void SendConnect() override;
+
+ void SendClientIntroduction(User *u) override;
+
+ void SendForceNickChange(User *u, const Anope::string &newnick, time_t when) override;
+
+ void SendSVSHold(const Anope::string &nick, time_t delay) override;
+
+ void SendSVSHoldDel(const Anope::string &nick) override;
+
+ void SendVhost(User *u, const Anope::string &ident, const Anope::string &host) override;
+
+ void SendVhostDel(User *u) override;
+
+ void SendSASLMechanisms(std::vector<Anope::string> &mechanisms) override;
+
+ void SendSASLMessage(const SASL::Message &message) override;
+
+ void SendSVSLogin(const Anope::string &uid, const Anope::string &acc, const Anope::string &vident, const Anope::string &vhost) override;
+};
+
class Encap : public IRCDMessage
{
ServiceReference<SASL::Service> sasl;