Use additional info's value directly in MucInfoWin and ConversationInfoWin
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
0c9c4edfa2
commit
7d0d4ddb51
1 changed files with 4 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue