Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sophie Herold
gajim
Commits
f3dd55de
Commit
f3dd55de
authored
Aug 19, 2018
by
Philipp Hörist
Browse files
Add reason to MUC service-error kick
parent
9e3e6f80
Changes
1
Show whitespace changes
Inline
Side-by-side
gajim/groupchat_control.py
View file @
f3dd55de
...
@@ -1828,6 +1828,8 @@ class GroupchatControl(ChatControlBase):
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment