From 0c4efbb6502e3c012c4776033dc38b698e833377 Mon Sep 17 00:00:00 2001 From: Schimon Jehudah Date: Mon, 13 May 2024 07:35:06 +0000 Subject: [PATCH] Fix JID handling for MUC in form Advanced. --- slixfeed/xmpp/client.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/slixfeed/xmpp/client.py b/slixfeed/xmpp/client.py index fb6e180..ad5d640 100644 --- a/slixfeed/xmpp/client.py +++ b/slixfeed/xmpp/client.py @@ -2522,8 +2522,7 @@ class Slixfeed(slixmpp.ClientXMPP): label='Choose', required=True, var='option') - jid = session['from'].bare - if is_operator(self, jid): + if is_operator(self, jid_bare): options.addOption('Administration', 'admin') # options.addOption('Activity', 'activity') # options.addOption('Filters', 'filter') @@ -2538,7 +2537,7 @@ class Slixfeed(slixmpp.ClientXMPP): session['prev'] = self._handle_advanced else: text_warn = ('This resource is restricted to moderators of {}.' - .format(jid)) + .format(jid_bare)) session['notes'] = [['warn', text_warn]] return session