From 2b6c5833bb6cd6b1e21bb66a0ebbc6a6e3e86767 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 22 Jun 2017 17:59:58 -0400 Subject: Ping uplink occasionally and disconnect if no pong is received --- include/modules/protocol/rfc1459.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/modules') diff --git a/include/modules/protocol/rfc1459.h b/include/modules/protocol/rfc1459.h index 54c4bada5..8780892e0 100644 --- a/include/modules/protocol/rfc1459.h +++ b/include/modules/protocol/rfc1459.h @@ -288,6 +288,14 @@ class Ping : public IRCDMessage void Run(MessageSource &source, const std::vector ¶ms) override; }; +class Pong : public IRCDMessage +{ + public: + Pong(Module *creator, const Anope::string &mname = "PONG") : IRCDMessage(creator, mname) { } + + void Run(MessageSource &source, const std::vector ¶ms) override; +}; + class Privmsg : public IRCDMessage { public: -- cgit