changeset 159:da2f2dc61e74

fix in irclib, needed because ServerConnection.socket can be a string since 42d7b622776196149c9a9a05da134a85ee9509c6 Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Tue, 19 Jan 2010 09:21:25 +0100
parents 73b6c8d20da7
children 266a6afb6b79
files irclib.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/irclib.py
+++ b/irclib.py
@@ -575,7 +575,7 @@ class ServerConnection(Connection):
         try:
             if self.ssl:
                 new_data = self.ssl.read(2**14)
-            elif self.socket:
+            elif self.socket and hasattr(self.socket, 'recv'):
                 new_data = self.socket.recv(2**14)
             else:
                 return