Fix JID handling for MUC in form Advanced.
This commit is contained in:
parent
e4237f972f
commit
0c4efbb650
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue