projects
/
python-purple
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added set_alias to Buddy class.
[python-purple]
/
buddy.pyx
diff --git
a/buddy.pyx
b/buddy.pyx
index
9a4523a
..
10e88bf
100644
(file)
--- 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