about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-09-25 20:26:42 +0100
committerJames Booth <boothj5@gmail.com>2014-09-25 20:26:42 +0100
commit7703f575843e0506184c979d33f4922b35ae4e33 (patch)
tree4db51cea833bcd1e2d713e9080801a28414268d7 /src/xmpp
parent9094c483d0448dc8b127f4e143afc8aee7c079c2 (diff)
downloadprofani-tty-7703f575843e0506184c979d33f4922b35ae4e33.tar.gz
Use log_warning for room config form errors
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/iq.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c
index 122a2d12..4a354a23 100644
--- a/src/xmpp/iq.c
+++ b/src/xmpp/iq.c
@@ -729,28 +729,28 @@ _room_config_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
     }
 
     if (from == NULL) {
-        log_error("No from attribute for IQ config request result");
+        log_warning("No from attribute for IQ config request result");
         handle_room_configuration_form_error(from, "No from attribute for room cofig response.");
         return 0;
     }
 
     xmpp_stanza_t *query = xmpp_stanza_get_child_by_name(stanza, STANZA_NAME_QUERY);
     if (query == NULL) {
-        log_error("No query element found parsing room config response");
+        log_warning("No query element found parsing room config response");
         handle_room_configuration_form_error(from, "No query element found parsing room config response");
         return 0;
     }
 
     xmpp_stanza_t *x = xmpp_stanza_get_child_by_ns(query, STANZA_NS_DATA);
     if (x == NULL) {
-        log_error("No x element found with %s namespace parsing room config response", STANZA_NS_DATA);
-        handle_room_configuration_form_error(from, "No form data element found parsing room config response");
+        log_warning("No x element found with %s namespace parsing room config response", STANZA_NS_DATA);
+        handle_room_configuration_form_error(from, "No form configuration options available");
         return 0;
     }
 
     char *form_type = xmpp_stanza_get_attribute(x, STANZA_ATTR_TYPE);
     if (g_strcmp0(form_type, "form") != 0) {
-        log_error("x element not of type 'form' parsing room config response");
+        log_warning("x element not of type 'form' parsing room config response");
         handle_room_configuration_form_error(from, "Form not of type 'form' parsing room config response.");
         return 0;
     }