From 99681ec568fb057cabd12c24813ce71e0d7fe271 Mon Sep 17 00:00:00 2001 From: yvesf Date: Sat, 12 Dec 2009 23:38:51 +0000 Subject: clean git-svn-id: http://xapek.org/svn/common/omegle@1484 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- omegle/icqChatroomBuddy.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'omegle/icqChatroomBuddy.py') 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__': -- cgit v1.2.1