From ccc78991b2579485998da17d83ed81ab216b6001 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Thu, 12 Jan 2006 08:28:43 +0000 Subject: [PATCH] remove an assert and add a space above a method --- src/message_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/message_window.py b/src/message_window.py index 14dbc72f4..058f1186b 100644 --- a/src/message_window.py +++ b/src/message_window.py @@ -561,7 +561,6 @@ class MessageWindowMgr: # Map the mode to a int constant for frequent compares mode = gajim.config.get('one_message_window') self.mode = common.config.opt_one_window_types.index(mode) - assert(self.mode != -1) def _new_window(self, acct, type): win = MessageWindow(acct, type) @@ -581,6 +580,7 @@ class MessageWindowMgr: if win.get_control(jid): return win return None + def has_window(self, jid): return self.get_window(jid)