summaryrefslogtreecommitdiff
path: root/icq_roombot.py
diff options
context:
space:
mode:
authoryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-12-07 08:22:55 +0000
committeryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-12-07 08:22:55 +0000
commitb56f9fb7612d5ab32c2a77fa47ef012b447b4be6 (patch)
treedfb2d1c1060a506fb1bcb924b5d451621fb3831b /icq_roombot.py
parent3b0e5ecaff8f622c3090d3ae66496ba0f5b7397d (diff)
downloadomegle-b56f9fb7612d5ab32c2a77fa47ef012b447b4be6.tar.gz
omegle-b56f9fb7612d5ab32c2a77fa47ef012b447b4be6.zip
foobar
git-svn-id: http://xapek.org/svn/common/omegle@1477 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
Diffstat (limited to 'icq_roombot.py')
-rw-r--r--icq_roombot.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/icq_roombot.py b/icq_roombot.py
index 7dc3da9..835d639 100644
--- a/icq_roombot.py
+++ b/icq_roombot.py
@@ -186,15 +186,20 @@ class ReconnectingOSCARFactory(protocol.ClientFactory):
return p
def clientConnectionLost(self, connector, reason):
+ print "reconnect in %s" % self.delay
reactor.callLater(self.delay, self._reconnect)
def _reconnect(self):
+ print "reconnect"
f = ReconnectingOSCARLoginFactory(uin, password)
return reactor.connectTCP(host, port, f)
class OscarCrap( oscar.OscarAuthenticator ):
BOSClass = icqBot
connectfactory = ReconnectingOSCARFactory
+ def connectToBOS(self, server, port):
+ f = self.connectfactory(self.username, self.cookie)
+ return reactor.connectTCP(server, int(port), f)
class ReconnectingOSCARLoginFactory(protocol.ReconnectingClientFactory):
protocol = OscarCrap
@@ -214,4 +219,3 @@ if __name__ == '__main__':
f = ReconnectingOSCARLoginFactory(uin, password)
reactor.connectTCP(host, port, f)
reactor.run()
-