Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Daron
panikweb
Commits
cf92bc1a
Commit
cf92bc1a
authored
Apr 20, 2017
by
fred
Browse files
chat: harden check for kick messages
parent
fafdc08b
Changes
1
Show whitespace changes
Inline
Side-by-side
panikweb_templates/static/js/specifics.js
View file @
cf92bc1a
...
...
@@ -622,6 +622,8 @@ $(function() {
var
nick
=
$
(
'
.nick input
'
).
val
()
var
muc
=
$
(
'
div#chat
'
).
data
(
'
chatroom
'
);
if
(
pres
.
getElementsByTagName
(
'
status
'
).
length
==
1
&&
pres
.
getElementsByTagName
(
'
status
'
)[
0
].
attributes
&&
pres
.
getElementsByTagName
(
'
status
'
)[
0
].
attributes
.
code
&&
pres
.
getElementsByTagName
(
'
status
'
)[
0
].
attributes
.
code
.
value
==
'
307
'
)
{
/* kicked */
var
kicked
=
pres
.
getElementsByTagName
(
'
item
'
)[
0
].
attributes
.
nick
.
value
;
...
...
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