stanza: removed tabs and trailing spaces
This commit is contained in:
@@ -1233,10 +1233,9 @@ xmpp_stanza_t *xmpp_presence_new(xmpp_ctx_t *ctx)
|
|||||||
xmpp_stanza_t *xmpp_error_new(xmpp_ctx_t *ctx, xmpp_error_type_t const type, char * const text)
|
xmpp_stanza_t *xmpp_error_new(xmpp_ctx_t *ctx, xmpp_error_type_t const type, char * const text)
|
||||||
{
|
{
|
||||||
xmpp_stanza_t *error = _stanza_new_with_attrs(ctx, "stream:error", NULL, NULL, NULL);
|
xmpp_stanza_t *error = _stanza_new_with_attrs(ctx, "stream:error", NULL, NULL, NULL);
|
||||||
|
|
||||||
xmpp_stanza_t *error_type = xmpp_stanza_new(ctx);
|
xmpp_stanza_t *error_type = xmpp_stanza_new(ctx);
|
||||||
switch(type)
|
|
||||||
{
|
switch(type) {
|
||||||
case XMPP_SE_BAD_FORMAT:
|
case XMPP_SE_BAD_FORMAT:
|
||||||
xmpp_stanza_set_name(error_type, "bad-format");
|
xmpp_stanza_set_name(error_type, "bad-format");
|
||||||
break;
|
break;
|
||||||
@@ -1318,8 +1317,7 @@ xmpp_stanza_t *xmpp_error_new(xmpp_ctx_t *ctx, xmpp_error_type_t const type, cha
|
|||||||
xmpp_stanza_add_child(error, error_type);
|
xmpp_stanza_add_child(error, error_type);
|
||||||
xmpp_stanza_release(error_type);
|
xmpp_stanza_release(error_type);
|
||||||
|
|
||||||
if(text)
|
if (text) {
|
||||||
{
|
|
||||||
xmpp_stanza_t *error_text = xmpp_stanza_new(ctx);
|
xmpp_stanza_t *error_text = xmpp_stanza_new(ctx);
|
||||||
xmpp_stanza_set_name(error_text, "text");
|
xmpp_stanza_set_name(error_text, "text");
|
||||||
xmpp_stanza_set_ns(error_text, XMPP_NS_STREAMS_IETF);
|
xmpp_stanza_set_ns(error_text, XMPP_NS_STREAMS_IETF);
|
||||||
|
|||||||
Reference in New Issue
Block a user