summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorAli Sabil <ali.sabil@gmail.com>2007-03-27 18:07:03 +0530
committerAli Sabil <ali.sabil@gmail.com>2007-03-27 18:07:03 +0530
commit4e39701b685c8f09b81c099194c537e38df6d168 (patch)
tree835834484728176b6c08ae167b2f546e9cac8379 /test.py
parent3ffc30821d889d6d25da8401fedb37f83b3c9deb (diff)
- Added some callbacks to Client
- Fixed a minor parsing error for ADL commands
Diffstat (limited to 'test.py')
-rw-r--r--test.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test.py b/test.py
index eafa8c7..bf691ec 100644
--- a/test.py
+++ b/test.py
@@ -30,9 +30,9 @@ class Client(pymsn.Client):
pymsn.Client.__init__(self, server, account, get_proxies(), HTTPPollConnection)
else:
pymsn.Client.__init__(self, server, account, proxies = get_proxies())
- gobject.idle_add(self.connect)
+ gobject.idle_add(self._connect)
- def connect(self):
+ def _connect(self):
self.login()
return False
@@ -46,6 +46,8 @@ class Client(pymsn.Client):
def on_login_success(self, proto):
self.profile.presence = pymsn.Presence.ONLINE
+ self.profile.display_name = "Kimbix"
+ self.profile.personal_message = "Testing pymsn, and freeing the pandas!"
def main():
import sys