Reset status on server disconnect.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 5 Oct 2012 19:58:15 +0000 (15:58 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 5 Oct 2012 19:58:15 +0000 (15:58 -0400)
irkerd

diff --git a/irkerd b/irkerd
index 313ba40af1d52be356c90f32f15ac9265f633520..1cb1c0f9a84d96b264bb9c8ad9f15f4b7c92c46d 100755 (executable)
--- a/irkerd
+++ b/irkerd
@@ -141,6 +141,7 @@ class Connection:
     def handle_disconnect(self):
         "Server disconnected us for flooding or some other reason."
         self.connection = None
+        self.status = "disconnected"
     def handle_kick(self, outof):
         "We've been kicked."
         self.status = "handshaking"