From 6a89acd2a0318ca7042c00ae027dd7e9d871777d Mon Sep 17 00:00:00 2001 From: yvesf Date: Sat, 12 Dec 2009 14:47:22 +0000 Subject: blah! git-svn-id: http://xapek.org/svn/common/omegle@1482 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- omegle/icqBuddy.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'omegle/icqBuddy.py') 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() -- cgit v1.2.1