diff options
author | mathieui <mathieui@mathieui.net> | 2011-06-04 20:15:18 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-06-04 20:15:18 +0200 |
commit | e27c6d74ada2dbe81c41b991a26028a4d9436ee4 (patch) | |
tree | a7216ec578c92bea59316a95c35b4d647421c2af /src/room.py | |
parent | fc3f6d936dd821e66ac96e9797bc7868f8d4b4db (diff) | |
download | poezio-e27c6d74ada2dbe81c41b991a26028a4d9436ee4.tar.gz poezio-e27c6d74ada2dbe81c41b991a26028a4d9436ee4.tar.bz2 poezio-e27c6d74ada2dbe81c41b991a26028a4d9436ee4.tar.xz poezio-e27c6d74ada2dbe81c41b991a26028a4d9436ee4.zip |
fix the display of the action 'emptying the status', and some few minor changes
Diffstat (limited to 'src/room.py')
-rw-r--r-- | src/room.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/room.py b/src/room.py index a5a05845..45ebddbd 100644 --- a/src/room.py +++ b/src/room.py @@ -46,6 +46,9 @@ class Room(TextBuffer): self.joined = False def get_single_line_topic(self): + """ + Return the topic as a single-line string (for the window header) + """ return self.topic.replace('\n', '|') def log_message(self, txt, time, nickname): @@ -77,6 +80,9 @@ class Room(TextBuffer): return color def get_user_by_name(self, nick): + """ + Gets the user associated with the given nick, or None if not found + """ for user in self.users: if user.nick == nick: return user |