X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=nullclient.py;h=d0fcb9baf46c40b566d289818e319c86349b2aa7;hp=2b7dd70131371ffc1cf9fb161f30f96cb85c37ed;hb=96cd4db66ee4749fb6d00e74e0bc9e3101e43079;hpb=3317112f6f04d1fdc7b338b947f18e811c9b9e7e diff --git a/nullclient.py b/nullclient.py index 2b7dd70..d0fcb9b 100644 --- a/nullclient.py +++ b/nullclient.py @@ -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()