g_string_append_len (str, buffer, len);
if (str->len >= 7)
{
- if (!strncmp (str->str, "<stream", 7))
+ if (!strncmp (str->str, "<stream", 7) ||
+ !strncmp (str->str, "<?xml ", 6))
{
/* Connection is a Jabber client */
g_debug ("Connection from %s is a Jabber client.",