From ab9c3ac3301241a1b1da62d208d3e7cf326438a7 Mon Sep 17 00:00:00 2001 From: James Booth Date: Tue, 23 Sep 2014 00:22:59 +0100 Subject: [PATCH] Reordered identity attributes in caps cache for readability --- src/xmpp/capabilities.c | 6 +++--- 1 file 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); }