From f00866c56a557e2850a6e8c2b4cc03e08966b30b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sun, 16 Dec 2018 14:19:38 +0000 Subject: ConversationInfoWin: Use similar pattern as MucInfoWin to loop through plugins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/windows/info_wins.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'poezio/windows') diff --git a/poezio/windows/info_wins.py b/poezio/windows/info_wins.py index d1426e67..317f24f7 100644 --- a/poezio/windows/info_wins.py +++ b/poezio/windows/info_wins.py @@ -176,8 +176,8 @@ class ConversationInfoWin(InfoWin): Write all information added by plugins by getting the value returned by the callbacks. """ - for key in information: - self.addstr(information[key](jid), + for plugin in information.values(): + self.addstr(plugin(jid), to_curses_attr(get_theme().COLOR_INFORMATION_BAR)) def write_resource_information(self, resource): -- cgit v1.2.3