X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=buddy.pyx;h=10e88bf6a4f895bbd84751372f656c9eeacc46dd;hp=9a4523a1ca78e092a0dda6978834123a6f10914c;hb=6de6090d402a505f5c9d7a483e0570c8c917fa27;hpb=5f1088fe97ce236fcb720c47d4a1122cb9bca8ec diff --git a/buddy.pyx b/buddy.pyx index 9a4523a..10e88bf 100644 --- a/buddy.pyx +++ b/buddy.pyx @@ -125,3 +125,10 @@ cdef class Buddy: else: return None idle = property(__get_idle) + + def set_alias(self, alias): + if self.__exists: + blist.purple_blist_alias_buddy(self._get_structure(), alias) + return True + else: + return False