summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorAli Sabil <ali.sabil@gmail.com>2007-08-21 22:51:43 +0200
committerAli Sabil <ali.sabil@gmail.com>2007-08-21 22:51:43 +0200
commitdaab162ba6c378285efcf46adf92d2c9f1c8b488 (patch)
treeaa0ff6f22d27eccffedae60ccc361a0818e2f13c /test.py
parent12e95b47e9b0df59fc2d93b0ab12a1cf8f18fe5f (diff)
- Merged jprieur's branch
Diffstat (limited to 'test.py')
-rwxr-xr-x[-rw-r--r--]test.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/test.py b/test.py
index 6ce8e9f..d7a7727 100644..100755
--- a/test.py
+++ b/test.py
@@ -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)