diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-12-15 17:05:52 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-12-15 17:05:52 +0000 |
commit | 883c0ec812c7479aacc9cab01915861dde4485c1 (patch) | |
tree | 794797dbbac3489497b9790a3b2627fb9ef6459e /src/core.py | |
parent | ff24960b6aac02e85189ac8c6ee6b042f6c84258 (diff) | |
download | poezio-883c0ec812c7479aacc9cab01915861dde4485c1.tar.gz poezio-883c0ec812c7479aacc9cab01915861dde4485c1.tar.bz2 poezio-883c0ec812c7479aacc9cab01915861dde4485c1.tar.xz poezio-883c0ec812c7479aacc9cab01915861dde4485c1.zip |
fix the /recolor command
Diffstat (limited to 'src/core.py')
-rw-r--r-- | src/core.py | 9 |
1 files changed, 4 insertions, 5 deletions
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=''): |