diff options
author | mathieui <mathieui@mathieui.net> | 2017-04-09 21:29:47 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2017-04-09 21:29:47 +0200 |
commit | e0f9de6d2f863b26e831d53e39f5df0ea237a2b4 (patch) | |
tree | 2fe20ff1ac9f2370238c2f41741d162ffb632d53 | |
parent | f2a0caafafc8f870faee8d3dfdf209684b58f066 (diff) | |
download | poezio-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.py | 2 |
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) |