# HG changeset patch # User Charly COSTE # Date 1263889285 -3600 # Node ID da2f2dc61e74a75e4abcc10b8743e03bbdbbe120 # Parent 73b6c8d20da727ed0210f4857ca438834187a407 fix in irclib, needed because ServerConnection.socket can be a string since 42d7b622776196149c9a9a05da134a85ee9509c6 Signed-off-by: Charly COSTE diff --git a/irclib.py b/irclib.py --- 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