summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2018-12-16 14:19:38 +0000
committerMaxime “pep” Buquet <pep@bouah.net>2018-12-16 14:19:38 +0000
commitf00866c56a557e2850a6e8c2b4cc03e08966b30b (patch)
tree090868ec7f67e500bfe2b5eab2dc0677b7ba1e6e
parent167920a9d086f7cd7092d7bced25dd18f549d59a (diff)
downloadpoezio-f00866c56a557e2850a6e8c2b4cc03e08966b30b.tar.gz
poezio-f00866c56a557e2850a6e8c2b4cc03e08966b30b.tar.bz2
poezio-f00866c56a557e2850a6e8c2b4cc03e08966b30b.tar.xz
poezio-f00866c56a557e2850a6e8c2b4cc03e08966b30b.zip
ConversationInfoWin: Use similar pattern as MucInfoWin to loop through plugins
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--poezio/windows/info_wins.py4
1 files changed, 2 insertions, 2 deletions
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):