From 6a89acd2a0318ca7042c00ae027dd7e9d871777d Mon Sep 17 00:00:00 2001 From: yvesf Date: Sat, 12 Dec 2009 14:47:22 +0000 Subject: blah! git-svn-id: http://xapek.org/svn/common/omegle@1482 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- omegle/icq.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'omegle/icq.py') diff --git a/omegle/icq.py b/omegle/icq.py index e8ed739..aa271cc 100644 --- a/omegle/icq.py +++ b/omegle/icq.py @@ -112,21 +112,22 @@ class ExtendedBOSConnection( oscar.BOSConnection ): oscar.BOSConnection.connectionLost(self,*args,**kwargs) class Authenticator( oscar.OscarAuthenticator ): - BOSClass = ExtendedBOSConnection +# BOSClass = ExtendedBOSConnection def connectionLost(self,reason): oscar.OscarAuthenticator.connectionLost(self,reason) self.factory.connectionLost(reason) class ReconnectOscarFactory(ClientFactory): - OAClass=Authenticator - def __init__(self, uid, password,icq=1): + def __init__(self, BOSClass, uid, password,icq=1): + self.BOSClass = BOSClass self.uid = uid self.password = password self.icq = icq def buildProtocol(self, addr): - p = self.__class__.OAClass(self.uid, self.password,icq=self.icq) + p = Authenticator(self.uid, self.password,icq=self.icq) p.factory = self + p.BOSClass = self.BOSClass return p def startedConnecting(self, connector): -- cgit v1.2.1