summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-02-24 21:56:16 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-02-24 21:56:16 +0100
commit001a20c91a6414b2fd4230bfae78fa7df57c291e (patch)
treee6216ff729fd70878020c60d4bf59f29ac05846f /src/windows.py
parentcccbad13d5dc0515c52131f657e48640aaa7d8af (diff)
downloadpoezio-001a20c91a6414b2fd4230bfae78fa7df57c291e.tar.gz
poezio-001a20c91a6414b2fd4230bfae78fa7df57c291e.tar.bz2
poezio-001a20c91a6414b2fd4230bfae78fa7df57c291e.tar.xz
poezio-001a20c91a6414b2fd4230bfae78fa7df57c291e.zip
Display chatstates in the user list in MucTabs
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/windows.py b/src/windows.py
index a18785ad..01566506 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -138,7 +138,11 @@ class UserList(Win):
show_col = theme.COLOR_STATUS_NONE
else:
show_col = self.color_show[user.show]
- self.addstr(y, 0, theme.CHAR_STATUS, common.curses_color_pair(show_col))
+ if user.chatstate == 'composing':
+ char = 'X'
+ else:
+ char = theme.CHAR_STATUS
+ self.addstr(y, 0, char, common.curses_color_pair(show_col))
self.addstr(y, 1, user.nick[:self.width-2], common.curses_color_pair(role_col))
y += 1
if y == self.height: