summaryrefslogtreecommitdiff
path: root/include/modules/protocol/plexus.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-12-08 10:18:27 -0500
committerAdam <Adam@anope.org>2016-12-08 10:18:27 -0500
commited08d1a31119adb379f8bec46d7ad47ee35c4c92 (patch)
treebe5de3edeaf26ad7efbf23a3d6508645614f283e /include/modules/protocol/plexus.h
parent0d112886980787ffd5c69e514eebe476bcec8343 (diff)
Export protocol implementations into protocol module headers
Diffstat (limited to 'include/modules/protocol/plexus.h')
-rw-r--r--include/modules/protocol/plexus.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/include/modules/protocol/plexus.h b/include/modules/protocol/plexus.h
index 0c5d8d8c0..69be3d713 100644
--- a/include/modules/protocol/plexus.h
+++ b/include/modules/protocol/plexus.h
@@ -22,6 +22,54 @@
namespace plexus
{
+class Proto : public IRCDProto
+{
+ ServiceReference<IRCDProto> hybrid; // XXX use moddeps + inheritance here
+
+ 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 SendSQLine(User *u, XLine *x) override { hybrid->SendSQLine(u, x); }
+ void SendSQLineDel(XLine *x) override { hybrid->SendSQLineDel(x); }
+ void SendSGLineDel(XLine *x) override { hybrid->SendSGLineDel(x); }
+ void SendSGLine(User *u, XLine *x) override { hybrid->SendSGLine(u, x); }
+ void SendAkillDel(XLine *x) override { hybrid->SendAkillDel(x); }
+ void SendAkill(User *u, XLine *x) override { hybrid->SendAkill(u, x); }
+ void SendServer(Server *server) override { hybrid->SendServer(server); }
+ void SendChannel(Channel *c) override { hybrid->SendChannel(c); }
+ void SendSVSHold(const Anope::string &nick, time_t t) override { hybrid->SendSVSHold(nick, t); }
+ void SendSVSHoldDel(const Anope::string &nick) override { hybrid->SendSVSHoldDel(nick); }
+
+ void SendGlobops(const MessageSource &source, const Anope::string &buf) override;
+
+ void SendJoin(User *user, Channel *c, const ChannelStatus *status) override;
+
+ void SendForceNickChange(User *u, const Anope::string &newnick, time_t when) override;
+
+ void SendVhost(User *u, const Anope::string &ident, const Anope::string &host) override;
+
+ void SendVhostDel(User *u) override;
+
+ void SendConnect() override;
+
+ void SendClientIntroduction(User *u) override;
+
+ void SendMode(const MessageSource &source, User *u, const Anope::string &buf) override;
+
+ void SendLogin(User *u, NickServ::Nick *na) override;
+
+ void SendLogout(User *u) override;
+
+ void SendTopic(const MessageSource &source, Channel *c) override;
+
+ void SendSVSJoin(const MessageSource &source, User *user, const Anope::string &chan, const Anope::string &param) override;
+
+ void SendSVSPart(const MessageSource &source, User *user, const Anope::string &chan, const Anope::string &param) override;
+};
+
class Encap : public IRCDMessage
{
public: