summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2019-04-08 11:15:17 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2019-04-08 11:15:17 +0100
commit0551867bfdb8dfa7dbd5964a15a1a950510e2c71 (patch)
treeac870fb8cdf7d765e2650747142b5533b9785549
parentc96e528a8fd1313f75cb792a8e4826fbcfde1bec (diff)
downloadpoezio-0551867bfdb8dfa7dbd5964a15a1a950510e2c71.tar.gz
poezio-0551867bfdb8dfa7dbd5964a15a1a950510e2c71.tar.bz2
poezio-0551867bfdb8dfa7dbd5964a15a1a950510e2c71.tar.xz
poezio-0551867bfdb8dfa7dbd5964a15a1a950510e2c71.zip
PrivateInfoWin: remove safeJID call
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--poezio/windows/info_wins.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/windows/info_wins.py b/poezio/windows/info_wins.py
index 7cc39a36..f3237a08 100644
--- a/poezio/windows/info_wins.py
+++ b/poezio/windows/info_wins.py
@@ -6,6 +6,7 @@ info buffer in normal tabs
import logging
log = logging.getLogger(__name__)
+from slixmpp import JID
from poezio.common import safeJID
from poezio.config import config
@@ -91,8 +92,7 @@ class PrivateInfoWin(InfoWin):
self.addstr(plugin(jid),
to_curses_attr(get_theme().COLOR_INFORMATION_BAR))
- def write_room_name(self, name):
- jid = safeJID(name)
+ def write_room_name(self, jid: JID):
room_name, nick = jid.bare, jid.resource
theme = get_theme()
self.addstr(nick, to_curses_attr(theme.COLOR_PRIVATE_NAME))