Commit 3bc33935 authored by Link Mauve's avatar Link Mauve
Browse files

Include MUCs in /presence autocompletion.

Fixes #3347.
parent d3023b43
......@@ -45,8 +45,13 @@ class CompletionCore:
arg = the_input.get_argument_position()
if arg == 1:
to_suggest = []
for bookmark in self.core.bookmarks:
tab = self.core.get_tab_by_name(bookmark.jid, tabs.MucTab)
if tab is not None and tab.joined:
return Completion(
the_input.auto_completion, [jid for jid in roster.jids()],
the_input.auto_completion, roster.jids() + to_suggest,
elif arg == 2:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment