Commit f3dd55de authored by Philipp Hörist's avatar Philipp Hörist

Add reason to MUC service-error kick

parent 9e3e6f80
......@@ -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'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment