summaryrefslogtreecommitdiff
path: root/src/user.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-08-04 23:54:02 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-08-04 23:54:02 +0000
commit94153c490b3ec2dc029a90d179b3cde335060294 (patch)
treedba7ea26831c5d7f30d806dffa65366c8f36642a /src/user.py
parent567491ba439b5ae1b1f82f3796287d80e2ef653d (diff)
downloadpoezio-94153c490b3ec2dc029a90d179b3cde335060294.tar.gz
poezio-94153c490b3ec2dc029a90d179b3cde335060294.tar.bz2
poezio-94153c490b3ec2dc029a90d179b3cde335060294.tar.xz
poezio-94153c490b3ec2dc029a90d179b3cde335060294.zip
fixes the sys.excepthook thread bug, and fix the traceback on joining a room with non-ascii chars
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 ce43aefa..ae369de0 100644
--- a/src/user.py
+++ b/src/user.py
@@ -19,6 +19,7 @@
from random import randrange
from config import config
from datetime import timedelta, datetime
+import curses
class User(object):
"""
@@ -29,6 +30,9 @@ class User(object):
self.update(affiliation, show, status, role)
self.change_nick(nick)
self.color = randrange(2, 10) # assign a random color
+ # if randrange(1) == 0:
+ # self.color = 16
+ # self.color |= curses.A_BOLD
def update(self, affiliation, show, status, role):
self.affiliation = affiliation