From e27c6d74ada2dbe81c41b991a26028a4d9436ee4 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 4 Jun 2011 20:15:18 +0200 Subject: fix the display of the action 'emptying the status', and some few minor changes --- src/room.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/room.py') 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 -- cgit v1.2.3