Moved stanza creation to stanza module

This commit is contained in:
James Booth
2015-05-15 01:06:30 +01:00
parent 34aca16d4a
commit c548c1be1b
4 changed files with 27 additions and 17 deletions

View File

@@ -93,7 +93,7 @@ listen_to(XMPPClient *client)
fflush(stdout);
parser_reset();
g_string_append_len(stream, buf, read_size);
if (g_str_has_suffix(stream->str, "</stream:stream>")) {
if (g_str_has_suffix(stream->str, STREAM_END)) {
stream_end(client);
break;
}