From 883c0ec812c7479aacc9cab01915861dde4485c1 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Wed, 15 Dec 2010 17:05:52 +0000 Subject: fix the /recolor command --- src/core.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/core.py') diff --git a/src/core.py b/src/core.py index 3fcfabfb..199bf237 100644 --- a/src/core.py +++ b/src/core.py @@ -1213,12 +1213,11 @@ class Core(object): Move the new-messages separator at the bottom on the current text. """ - try: - room = self.current_tab().get_room() - except: + window = self.current_tab().get_text_window() + if not window: return - room.remove_line_separator() - room.add_line_separator() + window.remove_line_separator() + window.add_line_separator() self.refresh_window() def information(self, msg, typ=''): -- cgit v1.2.3