summaryrefslogtreecommitdiff
path: root/src/tabs/muctab.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabs/muctab.py')
-rw-r--r--src/tabs/muctab.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tabs/muctab.py b/src/tabs/muctab.py
index 8953d075..4cd18f03 100644
--- a/src/tabs/muctab.py
+++ b/src/tabs/muctab.py
@@ -16,6 +16,7 @@ import curses
import os
import random
from datetime import datetime
+from functools import reduce
from . import ChatTab, Tab
@@ -206,7 +207,11 @@ class MucTab(ChatTab):
compare_users = lambda x: x.last_talked
userlist = [user.nick for user in sorted(self.users, key=compare_users, reverse=True)\
if user.nick != self.own_nick]
- return the_input.auto_completion(userlist, quotify=False)
+ comp = sorted(reduce(lambda x, y: x + [i.jid for i in y],
+ (roster[jid].resources for jid in roster.jids() if len(roster[jid])),
+ []))
+ userlist.extend(comp)
+ return the_input.new_completion(userlist, 1, quotify=False)
def completion_info(self, the_input):
"""Completion for /info"""