Add reason to MUC service-error kick
This commit is contained in:
parent
9e3e6f80bb
commit
f3dd55de3e
|
@ -1828,6 +1828,8 @@ class GroupchatControl(ChatControlBase):
|
||||||
s = _('%s kicked us due to an error' % self.room_jid)
|
s = _('%s kicked us due to an error' % self.room_jid)
|
||||||
else:
|
else:
|
||||||
s = _('%s has left due to an error' % nick)
|
s = _('%s has left due to an error' % nick)
|
||||||
|
if obj.reason:
|
||||||
|
s += ' (%s)' % obj.reason
|
||||||
self.print_conversation(s, 'info', graphics=False)
|
self.print_conversation(s, 'info', graphics=False)
|
||||||
elif '307' in obj.status_code:
|
elif '307' in obj.status_code:
|
||||||
if obj.actor is None: # do not print 'kicked by None'
|
if obj.actor is None: # do not print 'kicked by None'
|
||||||
|
|
Loading…
Reference in New Issue