summaryrefslogtreecommitdiff
path: root/omegle/icq.py
diff options
context:
space:
mode:
Diffstat (limited to 'omegle/icq.py')
-rw-r--r--omegle/icq.py9
1 files changed, 5 insertions, 4 deletions
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):