summaryrefslogtreecommitdiff
path: root/omegle/icq.py
diff options
context:
space:
mode:
authoryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-12-12 14:47:22 +0000
committeryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-12-12 14:47:22 +0000
commit6a89acd2a0318ca7042c00ae027dd7e9d871777d (patch)
treeb6865483cf630113f82f91df167f3430313e4607 /omegle/icq.py
parent06b965d5576238f3078764a345e9342324b21b4a (diff)
downloadomegle-6a89acd2a0318ca7042c00ae027dd7e9d871777d.tar.gz
omegle-6a89acd2a0318ca7042c00ae027dd7e9d871777d.zip
blah!
git-svn-id: http://xapek.org/svn/common/omegle@1482 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
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):