diff options
author | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2009-12-13 08:50:22 +0000 |
---|---|---|
committer | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2009-12-13 08:50:22 +0000 |
commit | eff1b8a7c206aad7d77fa64da510f2dc2495226b (patch) | |
tree | a87ae53a4cfece333292b9f5dfd663ac9830829e /omegle/icq.py | |
parent | 99681ec568fb057cabd12c24813ce71e0d7fe271 (diff) | |
download | omegle-eff1b8a7c206aad7d77fa64da510f2dc2495226b.tar.gz omegle-eff1b8a7c206aad7d77fa64da510f2dc2495226b.zip |
blablabla
git-svn-id: http://xapek.org/svn/common/omegle@1485 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
Diffstat (limited to 'omegle/icq.py')
-rw-r--r-- | omegle/icq.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/omegle/icq.py b/omegle/icq.py index aa271cc..37c5db7 100644 --- a/omegle/icq.py +++ b/omegle/icq.py @@ -107,16 +107,25 @@ class ExtendedBOSConnection( oscar.BOSConnection ): message = messageUtf8.encode('latin1','replace') oscar.BOSConnection.sendMessage(self,user,message) - def connectionLost(self,*args,**kwargs): + def connectionLost(self,reason): print "Connection lost" oscar.BOSConnection.connectionLost(self,*args,**kwargs) + self.transport.loseConnection() + self.authenticator.connectionLost(reason) class Authenticator( oscar.OscarAuthenticator ): -# BOSClass = ExtendedBOSConnection def connectionLost(self,reason): oscar.OscarAuthenticator.connectionLost(self,reason) self.factory.connectionLost(reason) + def connectToBOS(self, server, port): + c = protocol.ClientCreator(reactor, self.BOSClass, + self.username, self.cookie) + c.authenticator = self + return c.connectTCP(server, port) + + + class ReconnectOscarFactory(ClientFactory): def __init__(self, BOSClass, uid, password,icq=1): self.BOSClass = BOSClass |