Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
louiz’
biboumi
Commits
1208ba25
Commit
1208ba25
authored
Mar 24, 2014
by
louiz’
Browse files
Use the correct type of error
parent
e47b164a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/xmpp/xmpp_component.cpp
View file @
1208ba25
...
...
@@ -413,10 +413,10 @@ void XmppComponent::send_invalid_room_error(const std::string& muc_name,
XmlNode
error
(
"error"
);
error
[
"by"
]
=
muc_name
+
"@"
+
this
->
served_hostname
;
error
[
"type"
]
=
"wait"
;
XmlNode
service_unavailable
(
"service-unavailable
"
);
service_unavailable
[
"xmlns"
]
=
STANZA_NS
;
service_unavailable
.
close
();
error
.
add_child
(
std
::
move
(
service_unavailable
));
XmlNode
item_not_found
(
"item-not-found
"
);
item_not_found
[
"xmlns"
]
=
STANZA_NS
;
item_not_found
.
close
();
error
.
add_child
(
std
::
move
(
item_not_found
));
XmlNode
text
(
"text"
);
text
[
"xmlns"
]
=
STANZA_NS
;
text
[
"xml:lang"
]
=
"en"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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