summaryrefslogtreecommitdiff
path: root/omegle/icqChatroomBuddy.py
diff options
context:
space:
mode:
authoryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-12-12 13:32:30 +0000
committeryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-12-12 13:32:30 +0000
commit87026e6f05feabfc060c01bb57ce11d17e3c6530 (patch)
tree1963d14b38ef9dfc625bfc04e017fce2eb8b7517 /omegle/icqChatroomBuddy.py
parent7c12c4461ea97f32c8b8bbc9b6b6f560aa37b942 (diff)
downloadomegle-87026e6f05feabfc060c01bb57ce11d17e3c6530.tar.gz
omegle-87026e6f05feabfc060c01bb57ce11d17e3c6530.zip
blah
git-svn-id: http://xapek.org/svn/common/omegle@1480 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
Diffstat (limited to 'omegle/icqChatroomBuddy.py')
-rw-r--r--omegle/icqChatroomBuddy.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/omegle/icqChatroomBuddy.py b/omegle/icqChatroomBuddy.py
new file mode 100644
index 0000000..d4c2edc
--- /dev/null
+++ b/omegle/icqChatroomBuddy.py
@@ -0,0 +1,37 @@
+#!/usr/bin/python
+# -*- vim: encoding: utf-8 -*-
+import sys
+
+from twisted.words.protocols import oscar
+from twisted.internet import reactor, protocol
+from twisted.python import log
+
+from omegle.icqBuddy import OmegleICQ, OscarFactory
+
+ICQ_UIN = '446323989'
+ICQ_PASSWORD = 'gagaga'
+ICQ_CHATROOM_UID = '370496181'
+
+class OmegleICQChatroomBuddy( OmegleICQ ):
+ def gotBuddyList( self, buddylist ):
+ OmegleICQ.gotBuddyList( self, buddylist )
+ self.sendMessage(ICQ_CHATROOM_UID, "/join OMEGLE")
+ def shutdown( self ):
+ self.sendMessage(ICQ_CHATROOM_UID, "/leave")
+ OmegleICQ.shutdown(self)
+
+class Authenticator( oscar.OscarAuthenticator ):
+ BOSClass = OmegleICQChatroomBuddy
+
+class MyOscarFactory(OscarFactory):
+ BOSClass = Authenticator
+
+
+if __name__ == '__main__':
+ import logging
+ logging.basicConfig(level=logging.INFO)
+
+ log.startLogging(sys.stdout)
+ reactor.connectTCP('login.icq.com', 5238,
+ MyOscarFactory(ICQ_UIN,ICQ_PASSWORD,icq=1))
+ reactor.run()