summaryrefslogtreecommitdiff
path: root/src/user.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-07-01 22:51:19 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-07-01 22:51:19 +0000
commit2d90ee68ea63eaf95cf2f8a33625f28ef5c4e503 (patch)
treeafe09b5242e726bc1c2ad583fb772a5ba9f83689 /src/user.py
parent432bab0b6ba56db5956b823a297347494f09cbd7 (diff)
downloadpoezio-2d90ee68ea63eaf95cf2f8a33625f28ef5c4e503.tar.gz
poezio-2d90ee68ea63eaf95cf2f8a33625f28ef5c4e503.tar.bz2
poezio-2d90ee68ea63eaf95cf2f8a33625f28ef5c4e503.tar.xz
poezio-2d90ee68ea63eaf95cf2f8a33625f28ef5c4e503.zip
Available users now have a greater priority on nickname completion. fixed #1560
Diffstat (limited to 'src/user.py')
-rw-r--r--src/user.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/user.py b/src/user.py
index da403b51..82a50dda 100644
--- a/src/user.py
+++ b/src/user.py
@@ -57,3 +57,7 @@ class User(object):
if datetime.now() - delta > self.last_talked:
return False
return True
+
+ def __repr__(self):
+ return "<user.User object nick:%s show:%s(%s) status:%s affiliation:%s>"\
+ % (self.nick, self.show, type(self.show), self.status, self.affiliation)