diff options
author | Adam <Adam@anope.org> | 2017-06-22 17:59:58 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-06-22 17:59:58 -0400 |
commit | 2b6c5833bb6cd6b1e21bb66a0ebbc6a6e3e86767 (patch) | |
tree | 4f3b8b2dd11e2d80c62db732d0e803978ed440c8 /modules/protocol/rfc1459.cpp | |
parent | 46acfd0490bee851ef82897fa6a7686f64b2544e (diff) |
Ping uplink occasionally and disconnect if no pong is received
Diffstat (limited to 'modules/protocol/rfc1459.cpp')
-rw-r--r-- | modules/protocol/rfc1459.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/protocol/rfc1459.cpp b/modules/protocol/rfc1459.cpp index eee93571a..77f3dedc3 100644 --- a/modules/protocol/rfc1459.cpp +++ b/modules/protocol/rfc1459.cpp @@ -444,6 +444,12 @@ void Ping::Run(MessageSource &source, const std::vector<Anope::string> ¶ms) IRCD->Send<messages::Pong>(params.size() > 1 ? params[1] : Me->GetSID(), params[0]); } +void Pong::Run(MessageSource &source, const std::vector<Anope::string> ¶ms) +{ + // Here to get rid of the "unknown command from server" + // Read timeout is reset on any uplink recv() +} + void Privmsg::Run(MessageSource &source, const std::vector<Anope::string> ¶ms) { const Anope::string &receiver = params[0]; |