From e0f9de6d2f863b26e831d53e39f5df0ea237a2b4 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 9 Apr 2017 21:29:47 +0200 Subject: Fix #3307 (add nickname to /join bookmark completion) --- poezio/core/completions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3