Fix multiline responses in GAtChat
authorDenis Kenzior <denkenz@gmail.com>
Mon, 8 Jun 2009 19:06:07 +0000 (14:06 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Mon, 8 Jun 2009 19:08:18 +0000 (14:08 -0500)
commitfafdda30b925e76118a13f87d24846e36e2d8ebf
treec8868bd97afde24a6bbfefff0b2011f103b8c002
parentf9f30807816700c44c30c7d04b80c65497f0558d
Fix multiline responses in GAtChat

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
gatchat/gatchat.c