summaryrefslogtreecommitdiff
path: root/src/contact.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/contact.py')
-rw-r--r--src/contact.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/contact.py b/src/contact.py
index 510e208a..39ec9715 100644
--- a/src/contact.py
+++ b/src/contact.py
@@ -22,7 +22,7 @@ class Contact(object):
"""
def __init__(self, jid):
self._jid = JID(jid) # a SleekXMPP jid object
- self._display_name = ''
+ self._display_name = None
self._subscription = 'none'
self._ask = None
self._status = ''
@@ -51,3 +51,9 @@ class Contact(object):
def get_presence(self):
return self._presence
+
+ def set_name(self, name):
+ self._display_name = name
+
+ def get_name(self):
+ return self._display_name