summaryrefslogtreecommitdiff
path: root/include/modules
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-06-22 17:59:58 -0400
committerAdam <Adam@anope.org>2017-06-22 17:59:58 -0400
commit2b6c5833bb6cd6b1e21bb66a0ebbc6a6e3e86767 (patch)
tree4f3b8b2dd11e2d80c62db732d0e803978ed440c8 /include/modules
parent46acfd0490bee851ef82897fa6a7686f64b2544e (diff)
Ping uplink occasionally and disconnect if no pong is received
Diffstat (limited to 'include/modules')
-rw-r--r--include/modules/protocol/rfc1459.h8
1 files changed, 8 insertions, 0 deletions
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<Anope::string> &params) override;
};
+class Pong : public IRCDMessage
+{
+ public:
+ Pong(Module *creator, const Anope::string &mname = "PONG") : IRCDMessage(creator, mname) { }
+
+ void Run(MessageSource &source, const std::vector<Anope::string> &params) override;
+};
+
class Privmsg : public IRCDMessage
{
public: