summaryrefslogtreecommitdiff
path: root/modules/protocol/rfc1459.cpp
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 /modules/protocol/rfc1459.cpp
parent46acfd0490bee851ef82897fa6a7686f64b2544e (diff)
Ping uplink occasionally and disconnect if no pong is received
Diffstat (limited to 'modules/protocol/rfc1459.cpp')
-rw-r--r--modules/protocol/rfc1459.cpp6
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> &params)
IRCD->Send<messages::Pong>(params.size() > 1 ? params[1] : Me->GetSID(), params[0]);
}
+void Pong::Run(MessageSource &source, const std::vector<Anope::string> &params)
+{
+ // 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> &params)
{
const Anope::string &receiver = params[0];