summaryrefslogtreecommitdiff
path: root/src/room.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-06-18 11:55:21 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-06-18 11:55:21 +0200
commite56b8d9853bae436ccd2845ae63c6b30fa628cad (patch)
tree2cabab2cc990670790c93a8d39892fe2bbdfbdff /src/room.py
parent63db93c9992f41283002a7034ce610ae75736a58 (diff)
parentdd9186c72a04f449c427bce31d35a283f3c61c25 (diff)
downloadpoezio-e56b8d9853bae436ccd2845ae63c6b30fa628cad.tar.gz
poezio-e56b8d9853bae436ccd2845ae63c6b30fa628cad.tar.bz2
poezio-e56b8d9853bae436ccd2845ae63c6b30fa628cad.tar.xz
poezio-e56b8d9853bae436ccd2845ae63c6b30fa628cad.zip
Merge, j'ai rien compris
Diffstat (limited to 'src/room.py')
-rw-r--r--src/room.py6
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