From cbc805b6d5f53d8bad058216a908619c6aeac179 Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 4 Apr 2014 00:42:12 +0200 Subject: Fix a hidden traceback on groupchat messages --- src/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core.py b/src/core.py index 3c9f5077..af5b3992 100644 --- a/src/core.py +++ b/src/core.py @@ -3237,7 +3237,9 @@ class Core(object): self.doupdate() elif tab.state != old_state: self.refresh_tab_win() - self.current_tab().input.refresh() + current = self.current_tab() + if hasattr(current, 'input') and current.input: + current.input.refresh() self.doupdate() if 'message' in config.get('beep_on', 'highlight private').split(): -- cgit v1.2.3