Commit 7d0d4ddb authored by Maxime Buquet's avatar Maxime Buquet

Use additional info's value directly in MucInfoWin and ConversationInfoWin

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <pep@bouah.net>
parent 0c9c4edf
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment