diff options
author | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2009-12-12 14:47:22 +0000 |
---|---|---|
committer | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2009-12-12 14:47:22 +0000 |
commit | 6a89acd2a0318ca7042c00ae027dd7e9d871777d (patch) | |
tree | b6865483cf630113f82f91df167f3430313e4607 /omegle/icqBuddy.py | |
parent | 06b965d5576238f3078764a345e9342324b21b4a (diff) | |
download | omegle-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/icqBuddy.py')
-rw-r--r-- | omegle/icqBuddy.py | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/omegle/icqBuddy.py b/omegle/icqBuddy.py index 554a434..cd34cd4 100644 --- a/omegle/icqBuddy.py +++ b/omegle/icqBuddy.py @@ -8,7 +8,7 @@ from twisted.internet import reactor from twisted.python import log from omegle import OmegleChat -from icq import ExtendedBOSConnection, ReconnectOscarFactory, Authenticator +from icq import ExtendedBOSConnection, ReconnectOscarFactory ICQ_UIN = '446323989' ICQ_PASSWORD = 'gagaga' @@ -101,20 +101,11 @@ class ICQBuddy( ExtendedBOSConnection ): except Exception,e: print "icq(%s): Error %s" % (user.name,e) -class MyAuthenticator( Authenticator ): - BOSClass = ICQBuddy - -class Factory( ReconnectOscarFactory ): - OAClass = MyAuthenticator - if __name__ == '__main__': import logging logging.basicConfig(level=logging.INFO) - log.startLogging(sys.stdout) - print Factory.OAClass - print MyAuthenticator.BOSClass - reactor.connectTCP('login.icq.com', 5238, - Factory(ICQ_UIN,ICQ_PASSWORD,icq=1)) + + factory = ReconnectOscarFactory(ICQBuddy, ICQ_UIN,ICQ_PASSWORD,icq=1) reactor.run() |