summaryrefslogtreecommitdiff
path: root/omegle/icqChatroomBuddy.py
diff options
context:
space:
mode:
Diffstat (limited to 'omegle/icqChatroomBuddy.py')
-rw-r--r--omegle/icqChatroomBuddy.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/omegle/icqChatroomBuddy.py b/omegle/icqChatroomBuddy.py
index 63689f1..a235334 100644
--- a/omegle/icqChatroomBuddy.py
+++ b/omegle/icqChatroomBuddy.py
@@ -7,20 +7,21 @@ from twisted.words.protocols import oscar
from twisted.internet import reactor, protocol
from twisted.python import log
-from omegle.icqBuddy import OmegleICQ
+from omegle.icqBuddy import ICQBuddy
from icq import ReconnectOscarFactory
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")
+class OmegleICQChatroomBuddy( ICQBuddy ):
+ def initDone( self ):
+ ICQBuddy.initDone(self)
+ reactor.callLater(5.0, self.sendMessage,ICQ_CHATROOM_UID, "/join OMEGLE")
+
def shutdown( self ):
self.sendMessage(ICQ_CHATROOM_UID, "/leave")
- OmegleICQ.shutdown(self)
+ ICQBuddy.shutdown(self)
if __name__ == '__main__':