From 926e33090efc8538a6fe1a92b4d0283bc7f7c19b Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Thu, 11 Dec 2003 18:39:11 +0000 Subject: Add some explicit returns after call to Client.disconnect --- miniircd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/miniircd b/miniircd index b580e39..ddffcb9 100755 --- a/miniircd +++ b/miniircd @@ -19,7 +19,7 @@ # # Joel Rosdahl -version = "0.1.0" +version = "0.1.1" import getopt import os @@ -127,6 +127,7 @@ class Client(object): now = time.time() if self.timestamp + 180 < now: self.disconnect("ping timeout") + return if not self.__sentPing and self.timestamp + 90 < now: self.message("PING :%s" % self.__server.name) self.__sentPing = True @@ -170,6 +171,7 @@ class Client(object): ":%s 464 :Password incorrect" % server.name) elif command == "QUIT": self.disconnect("Client quit") + return else: pass @@ -205,6 +207,7 @@ class Client(object): self.__realname = arguments[3] elif command == "QUIT": self.disconnect("Client quit") + return else: pass if self.nickname and self.user: -- cgit v1.2.3