Fix multiline responses in GAtChat
authorDenis Kenzior <denkenz@gmail.com>
Mon, 8 Jun 2009 19:06:07 +0000 (14:06 -0500)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 9 Jun 2009 05:39:16 +0000 (07:39 +0200)
The standard is a bit fuzzy on how multiline responses are returned
GAtChat assumed that they will always start with <cr><lf>, however
this doesn't seem to be correct.  Add a new state which is entered
when a response is obtained.  If <cr> is encountered, then it
is processed regularly, otherwise the parser assumes that the
next line is part of the multiline response


No differences found