From d8f6074f10cb2c4339b21305c8cdcf92a3f91521 Mon Sep 17 00:00:00 2001 From: Greg Taylor Date: Tue, 21 Apr 2009 13:36:11 +0000 Subject: [PATCH] Enable to KeelAliveREquest on IMC2 connection. --- src/imc2/connection.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/imc2/connection.py b/src/imc2/connection.py index 3c2a591f7a..868b612ca6 100644 --- a/src/imc2/connection.py +++ b/src/imc2/connection.py @@ -81,9 +81,11 @@ class IMC2Protocol(StatefulTelnetProtocol): self.is_authenticated = True self.sequence = int(time()) logger.log_infomsg("IMC2: Successfully authenticated to the '%s' network." % self.network_name) - # Let everyone know we've arrived. + # Ask to see what other MUDs are connected. + self.send_packet(IMC2PacketKeepAliveRequest()) + # IMC2 protocol states that KeepAliveRequests should be followed + # up by the requester sending an IsAlive packet. self.send_packet(IMC2PacketIsAlive()) - #self.send_packet(IMC2PacketKeepAliveRequest()) def _handle_channel_mappings(self, packet): """