summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-04-09 21:29:47 +0200
committermathieui <mathieui@mathieui.net>2017-04-09 21:29:47 +0200
commite0f9de6d2f863b26e831d53e39f5df0ea237a2b4 (patch)
tree2fe20ff1ac9f2370238c2f41741d162ffb632d53
parentf2a0caafafc8f870faee8d3dfdf209684b58f066 (diff)
downloadpoezio-e0f9de6d2f863b26e831d53e39f5df0ea237a2b4.tar.gz
poezio-e0f9de6d2f863b26e831d53e39f5df0ea237a2b4.tar.bz2
poezio-e0f9de6d2f863b26e831d53e39f5df0ea237a2b4.tar.xz
poezio-e0f9de6d2f863b26e831d53e39f5df0ea237a2b4.zip
Fix #3307 (add nickname to /join bookmark completion)
-rw-r--r--poezio/core/completions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/core/completions.py b/poezio/core/completions.py
index 54607951..a6007152 100644
--- a/poezio/core/completions.py
+++ b/poezio/core/completions.py
@@ -97,7 +97,7 @@ class CompletionCore:
relevant_rooms = []
relevant_rooms.extend(sorted(self.core.pending_invites.keys()))
- bookmarks = [str(elem.jid) for elem in self.core.bookmarks]
+ bookmarks = [(str(elem.jid) if not elem.nick else '%s/%s' % (elem.jid, elem.nick)) for elem in self.core.bookmarks]
to_suggest = []
for bookmark in bookmarks:
tab = self.core.get_tab_by_name(bookmark, tabs.MucTab)