aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/snap.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/snap.cpp b/src/snap.cpp
index 899581b..3ab2941 100644
--- a/src/snap.cpp
+++ b/src/snap.cpp
@@ -186,8 +186,16 @@ std::set<std::string> get_server_caps()
{
std::set<std::string> caps_set;
auto caps_gl = notify_get_server_caps();
+ std::string caps_str;
for(auto l=caps_gl; l!=nullptr; l=l->next)
+ {
caps_set.insert((const char*)l->data);
+
+ caps_str += (const char*) l->data;;
+ if (l->next != nullptr)
+ caps_str += ", ";
+ }
+ g_debug ("%s notify_get_server() returned [%s]", G_STRFUNC, caps_str.c_str());
g_list_free_full(caps_gl, g_free);
return caps_set;
}