From 1b995e4bf04b8eb8d5a40039596a7b7a8277fb03 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Fri, 21 Jan 2011 04:46:21 +0100 Subject: Data form support. supported yet: text-single, text-private, list-single, boolean The interface is really ugly, but, well, it works --- src/user.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/user.py') 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 -- cgit v1.2.3