Cosmetics.
[python-purple] / nullclient.py
index 2b7dd70..d0fcb9b 100644 (file)
@@ -24,8 +24,8 @@ class NullClient:
         self.account.set_password(password)
         self.account.set_enabled("carman-purple-python", True)
 
-    def get_buddies(self, account):
-        buddies = account.get_buddies_online(account)
+    def get_buddies(self):
+        buddies = self.account.get_buddies_online()
         print buddies
 
 def getuser():
@@ -46,5 +46,5 @@ if __name__ == '__main__':
     client.new_account(username, client.protocol, password)
 
     client.p.connect()
-    ecore.timer_add(30, client.get_buddies, client.account)
+    ecore.timer_add(20, client.get_buddies)
     ecore.main_loop_begin()