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
f438a27a
Commit
f438a27a
authored
Aug 08, 2018
by
Philipp Hörist
Browse files
Handle new MUC status code 333
parent
aa5fca86
Changes
1
Hide whitespace changes
Inline
Side-by-side
gajim/groupchat_control.py
View file @
f438a27a
...
...
@@ -1830,7 +1830,14 @@ class GroupchatControl(ChatControlBase):
if
obj
.
show
in
(
'offline'
,
'error'
):
if
obj
.
status_code
:
if
'307'
in
obj
.
status_code
:
if
'333'
in
obj
.
status_code
:
# Handle 333 before 307, some MUCs add both
if
obj
.
nick
==
self
.
nick
:
s
=
_
(
'%s kicked us due to an error'
%
self
.
room_jid
)
else
:
s
=
_
(
'%s has left due to an error'
%
nick
)
self
.
print_conversation
(
s
,
'info'
,
graphics
=
False
)
elif
'307'
in
obj
.
status_code
:
if
obj
.
actor
is
None
:
# do not print 'kicked by None'
s
=
_
(
'%(nick)s has been kicked: %(reason)s'
)
%
{
'nick'
:
nick
,
'reason'
:
obj
.
reason
}
...
...
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