summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2003-12-11 18:39:11 +0000
committerJoel Rosdahl <joel@rosdahl.net>2011-08-21 15:53:50 +0200
commit926e33090efc8538a6fe1a92b4d0283bc7f7c19b (patch)
tree6e20fd196bd39e7d940f01a73c5d7d01f9c9e80a
parent352c5d55fdd8f06a781e9f41cfde9c5e4164c460 (diff)
downloadminiircd-926e33090efc8538a6fe1a92b4d0283bc7f7c19b.tar.gz
miniircd-926e33090efc8538a6fe1a92b4d0283bc7f7c19b.zip
Add some explicit returns after call to Client.disconnect
-rwxr-xr-xminiircd5
1 files changed, 4 insertions, 1 deletions
diff --git a/miniircd b/miniircd
index b580e39..ddffcb9 100755
--- a/miniircd
+++ b/miniircd
@@ -19,7 +19,7 @@
#
# Joel Rosdahl <joel@rosdahl.net>
-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: