summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2018-12-15 20:55:54 +0000
committerMaxime “pep” Buquet <pep@bouah.net>2018-12-15 21:00:46 +0000
commit7d0d4ddb517a27bf5e49a292dad6d70d97056a4f (patch)
treee4592bd9be5d1068d7f5586ea3c8567108b72914
parent0c9c4edfa2ed213baf600957a05b3f54d395996b (diff)
downloadpoezio-7d0d4ddb517a27bf5e49a292dad6d70d97056a4f.tar.gz
poezio-7d0d4ddb517a27bf5e49a292dad6d70d97056a4f.tar.bz2
poezio-7d0d4ddb517a27bf5e49a292dad6d70d97056a4f.tar.xz
poezio-7d0d4ddb517a27bf5e49a292dad6d70d97056a4f.zip
Use additional info's value directly in MucInfoWin and ConversationInfoWin
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--poezio/windows/info_wins.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/poezio/windows/info_wins.py b/poezio/windows/info_wins.py
index 2c0162b2..d1426e67 100644
--- a/poezio/windows/info_wins.py
+++ b/poezio/windows/info_wins.py
@@ -87,8 +87,8 @@ class PrivateInfoWin(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_room_name(self, name):
@@ -277,8 +277,8 @@ class MucInfoWin(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_room_name(self, room):