From 94153c490b3ec2dc029a90d179b3cde335060294 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Wed, 4 Aug 2010 23:54:02 +0000 Subject: fixes the sys.excepthook thread bug, and fix the traceback on joining a room with non-ascii chars --- src/user.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/user.py') 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 -- cgit v1.2.3