summaryrefslogtreecommitdiff
path: root/src/room.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-05-11 16:45:14 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-05-11 16:45:14 +0000
commitd80a16ac9cc73ce95b62a21892e2055a548e0e44 (patch)
tree9d224b186430d3e3ad933a9f55329335bfa62166 /src/room.py
parenta14611dbde118b1ffa6f66eb7237ddc0c3c61508 (diff)
downloadpoezio-d80a16ac9cc73ce95b62a21892e2055a548e0e44.tar.gz
poezio-d80a16ac9cc73ce95b62a21892e2055a548e0e44.tar.bz2
poezio-d80a16ac9cc73ce95b62a21892e2055a548e0e44.tar.xz
poezio-d80a16ac9cc73ce95b62a21892e2055a548e0e44.zip
Display the status change and/or disconnect for recent-speakers only. fixed #1288
Diffstat (limited to 'src/room.py')
-rw-r--r--src/room.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/room.py b/src/room.py
index 100b2fe5..eb6e7de8 100644
--- a/src/room.py
+++ b/src/room.py
@@ -53,11 +53,15 @@ class Room(object):
if word.lower() in msg.lower() and word != '':
self.set_color_state(13)
color = 3
+ break
if not msg:
logger.info('msg is None..., %s' % (nick))
return
self.lines.append((date, nick.encode('utf-8'),
msg.encode('utf-8'), color))
+ user = self.get_user_by_name(nick)
+ if user:
+ user.set_last_talked(date)
if self.joined: # log only NEW messages, not the history received on join
logger.message(self.name, nick.encode('utf-8'), msg.encode('utf-8'))
return color