Add reason to MUC service-error kick

This commit is contained in:
Philipp Hörist 2018-08-19 17:02:10 +02:00
parent 6f8ffb131a
commit def4f548c1
1 changed files with 2 additions and 0 deletions

View File

@ -1828,6 +1828,8 @@ class GroupchatControl(ChatControlBase):
s = _('%s kicked us due to an error' % self.room_jid)
else:
s = _('%s has left due to an error' % nick)
if obj.reason:
s += ' (%s)' % obj.reason
self.print_conversation(s, 'info', graphics=False)
elif '307' in obj.status_code:
if obj.actor is None: # do not print 'kicked by None'