diff options
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() |