about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-12-29 01:17:59 +0000
committerJames Booth <boothj5@gmail.com>2014-12-29 01:17:59 +0000
commit10a3a3a67504225ffaaee6aabb39831db36c8f31 (patch)
treea0fa083c4f888e2908c9a83203d2f25232a3c279 /src/xmpp
parent4be06c0ae270ad8a04abba85ef3c608527a29d2c (diff)
downloadprofani-tty-10a3a3a67504225ffaaee6aabb39831db36c8f31.tar.gz
Use events for chat sessions
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/message.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c
index 0b40b979..c1c1ac14 100644
--- a/src/xmpp/message.c
+++ b/src/xmpp/message.c
@@ -201,7 +201,7 @@ _message_error_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
     void * const userdata)
 {
     char *id = xmpp_stanza_get_id(stanza);
-    char *from = xmpp_stanza_get_attribute(stanza, STANZA_ATTR_FROM);
+    char *jid = xmpp_stanza_get_attribute(stanza, STANZA_ATTR_FROM);
     xmpp_stanza_t *error_stanza = xmpp_stanza_get_child_by_name(stanza, STANZA_NAME_ERROR);
     char *type = NULL;
     if (error_stanza != NULL) {
@@ -216,9 +216,9 @@ _message_error_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
         g_string_append(log_msg, " id=");
         g_string_append(log_msg, id);
     }
-    if (from != NULL) {
+    if (jid != NULL) {
         g_string_append(log_msg, " from=");
-        g_string_append(log_msg, from);
+        g_string_append(log_msg, jid);
     }
     if (type != NULL) {
         g_string_append(log_msg, " type=");
@@ -231,7 +231,7 @@ _message_error_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
 
     g_string_free(log_msg, TRUE);
 
-    handle_message_error(from, type, err_msg);
+    handle_message_error(jid, type, err_msg);
 
     free(err_msg);