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',
|
label='Choose',
|
||||||
required=True,
|
required=True,
|
||||||
var='option')
|
var='option')
|
||||||
jid = session['from'].bare
|
if is_operator(self, jid_bare):
|
||||||
if is_operator(self, jid):
|
|
||||||
options.addOption('Administration', 'admin')
|
options.addOption('Administration', 'admin')
|
||||||
# options.addOption('Activity', 'activity')
|
# options.addOption('Activity', 'activity')
|
||||||
# options.addOption('Filters', 'filter')
|
# options.addOption('Filters', 'filter')
|
||||||
|
@ -2538,7 +2537,7 @@ class Slixfeed(slixmpp.ClientXMPP):
|
||||||
session['prev'] = self._handle_advanced
|
session['prev'] = self._handle_advanced
|
||||||
else:
|
else:
|
||||||
text_warn = ('This resource is restricted to moderators of {}.'
|
text_warn = ('This resource is restricted to moderators of {}.'
|
||||||
.format(jid))
|
.format(jid_bare))
|
||||||
session['notes'] = [['warn', text_warn]]
|
session['notes'] = [['warn', text_warn]]
|
||||||
return session
|
return session
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue