ConversationInfoWin: Use similar pattern as MucInfoWin to loop through plugins

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2018-12-16 14:19:38 +00:00
parent 167920a9d0
commit f00866c56a
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -176,8 +176,8 @@ class ConversationInfoWin(InfoWin):
Write all information added by plugins by getting the Write all information added by plugins by getting the
value returned by the callbacks. value returned by the callbacks.
""" """
for key in information: for plugin in information.values():
self.addstr(information[key](jid), self.addstr(plugin(jid),
to_curses_attr(get_theme().COLOR_INFORMATION_BAR)) to_curses_attr(get_theme().COLOR_INFORMATION_BAR))
def write_resource_information(self, resource): def write_resource_information(self, resource):