summaryrefslogtreecommitdiff
path: root/src/user.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-01-21 04:46:21 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-01-21 04:46:21 +0100
commit1b995e4bf04b8eb8d5a40039596a7b7a8277fb03 (patch)
tree929238043f8502528265c77b2ac8a955b8f4bdec /src/user.py
parent33c69df12b1621129b7af1a21eb180454d01e21b (diff)
downloadpoezio-1b995e4bf04b8eb8d5a40039596a7b7a8277fb03.tar.gz
poezio-1b995e4bf04b8eb8d5a40039596a7b7a8277fb03.tar.bz2
poezio-1b995e4bf04b8eb8d5a40039596a7b7a8277fb03.tar.xz
poezio-1b995e4bf04b8eb8d5a40039596a7b7a8277fb03.zip
Data form support.
supported yet: text-single, text-private, list-single, boolean The interface is really ugly, but, well, it works
Diffstat (limited to 'src/user.py')
-rw-r--r--src/user.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/user.py b/src/user.py
index 2cbe32d2..82d74193 100644
--- a/src/user.py
+++ b/src/user.py
@@ -36,11 +36,12 @@ class User(object):
"""
keep trace of an user in a Room
"""
- def __init__(self, nick, affiliation, show, status, role):
+ def __init__(self, nick, affiliation, show, status, role, jid):
self.last_talked = datetime(1, 1, 1) # The oldest possible time
self.update(affiliation, show, status, role)
self.change_nick(nick)
self.color = choice(theme.LIST_COLOR_NICKNAMES)
+ self.jid = jid
def update(self, affiliation, show, status, role):
self.affiliation = affiliation