diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2019-04-08 11:14:43 +0100 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2019-04-08 11:14:43 +0100 |
commit | c96e528a8fd1313f75cb792a8e4826fbcfde1bec (patch) | |
tree | 713740e0059f818033a08f8bc3252e4cce801db7 | |
parent | a21335ac171a827a613dcce744898e822689c9d3 (diff) | |
download | poezio-c96e528a8fd1313f75cb792a8e4826fbcfde1bec.tar.gz poezio-c96e528a8fd1313f75cb792a8e4826fbcfde1bec.tar.bz2 poezio-c96e528a8fd1313f75cb792a8e4826fbcfde1bec.tar.xz poezio-c96e528a8fd1313f75cb792a8e4826fbcfde1bec.zip |
MucInfoWin: fix room name type
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r-- | poezio/windows/info_wins.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/poezio/windows/info_wins.py b/poezio/windows/info_wins.py index 3a8d1863..7cc39a36 100644 --- a/poezio/windows/info_wins.py +++ b/poezio/windows/info_wins.py @@ -266,7 +266,7 @@ class MucInfoWin(InfoWin): def refresh(self, room, window=None, user=None, information=None): log.debug('Refresh: %s', self.__class__.__name__) self._win.erase() - self.write_room_name(room) + self.write_room_name(str(room.name)) self.write_participants_number(room) self.write_own_nick(room) self.write_disconnected(room) @@ -287,11 +287,11 @@ class MucInfoWin(InfoWin): for plugin in information.values(): self.addstr(plugin(jid), color) - def write_room_name(self, room): + def write_room_name(self, name: str): theme = get_theme() color = to_curses_attr(theme.COLOR_INFORMATION_BAR) self.addstr('[', color) - self.addstr(room.name, + self.addstr(name, to_curses_attr(theme.COLOR_GROUPCHAT_NAME)) self.addstr(']', color) |