about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-09-23 00:22:59 +0100
committerJames Booth <boothj5@gmail.com>2014-09-23 00:22:59 +0100
commitab9c3ac3301241a1b1da62d208d3e7cf326438a7 (patch)
tree39f3221fbcbb3bcf4fbbe8a029ce9ae86a6a2141 /src
parente88cc0079a73ac40e2a6f009a10b8047d120ff89 (diff)
downloadprofani-tty-ab9c3ac3301241a1b1da62d208d3e7cf326438a7.tar.gz
Reordered identity attributes in caps cache for readability
Diffstat (limited to 'src')
-rw-r--r--src/xmpp/capabilities.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xmpp/capabilities.c b/src/xmpp/capabilities.c
index 645eed68..4e710689 100644
--- a/src/xmpp/capabilities.c
+++ b/src/xmpp/capabilities.c
@@ -83,15 +83,15 @@ caps_add(const char * const ver, Capabilities *caps)
 {
     gboolean cached = g_key_file_has_group(cache, ver);
     if (!cached) {
+        if (caps->name) {
+            g_key_file_set_string(cache, ver, "name", caps->name);
+        }
         if (caps->category) {
             g_key_file_set_string(cache, ver, "category", caps->category);
         }
         if (caps->type) {
             g_key_file_set_string(cache, ver, "type", caps->type);
         }
-        if (caps->name) {
-            g_key_file_set_string(cache, ver, "name", caps->name);
-        }
         if (caps->software) {
             g_key_file_set_string(cache, ver, "software", caps->software);
         }