Make namedtuple local
This commit is contained in:
parent
ced387e719
commit
de4cd80b83
|
@ -67,8 +67,6 @@ plugin_manager = None # Plugins Manager
|
|||
|
||||
logger = cast(LoggerT, None)
|
||||
|
||||
RecentGroupchat = namedtuple('RecentGroupchat', ['room', 'server', 'nickname'])
|
||||
|
||||
css_config = None
|
||||
|
||||
os_info = None # used to cache os information
|
||||
|
@ -575,6 +573,9 @@ def get_recent_groupchats(account):
|
|||
recent_groupchats = config.get_per(
|
||||
'accounts', account, 'recent_groupchats').split()
|
||||
|
||||
RecentGroupchat = namedtuple('RecentGroupchat',
|
||||
['room', 'server', 'nickname'])
|
||||
|
||||
recent_list = []
|
||||
for groupchat in recent_groupchats:
|
||||
jid = nbxmpp.JID(groupchat)
|
||||
|
|
Loading…
Reference in New Issue