diff options
author | Ali Sabil <ali.sabil@gmail.com> | 2007-08-21 22:51:43 +0200 |
---|---|---|
committer | Ali Sabil <ali.sabil@gmail.com> | 2007-08-21 22:51:43 +0200 |
commit | daab162ba6c378285efcf46adf92d2c9f1c8b488 (patch) | |
tree | aa0ff6f22d27eccffedae60ccc361a0818e2f13c /test.py | |
parent | 12e95b47e9b0df59fc2d93b0ab12a1cf8f18fe5f (diff) |
- Merged jprieur's branch
Diffstat (limited to 'test.py')
-rwxr-xr-x[-rw-r--r--] | test.py | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -82,15 +82,19 @@ class Client(pymsn.Client): def start_conversation(self): contacts = self.address_book.contacts.\ - search_by_presence(pymsn.Presence.ONLINE) + search_by_presence(pymsn.Presence.OFFLINE) if len(contacts) == 0: - print "No online contacts" + print "No offline contacts" return True else: for contact in contacts: - if contact.account == "im_a_jabber_monkey@hotmail.com": + #if contact.account == "im_a_jabber_monkey@hotmail.com": #if contact.account == "tp-butterfly@hotmail.com": - #if contact.account == "johann.prieur@gmail.com": +# if contact.account == "ks_test001@hotmail.com": +# print "Sending OIM to %s" % contact.display_name +# self.oim_box.send_message(self, contact, "Testing OIM!") + + if contact.account == "johann.prieur@gmail.com": print "Inviting %s for a conversation" % contact.display_name self.conv = pymsn.Conversation(self, [contact]) AnnoyingConversation(self.conv) |