- Buf = NewStrBufPlain(buf, i);
-
-/* debug
- char t[256];
- extract_token(t, buf, 0, '|', sizeof t);
- lprintf(9, "SESS: %s\n", t);
- extract_token(t, buf, 1, '|', sizeof t);
- lprintf(9, "USER: %s\n", t);
- extract_token(t, buf, 2, '|', sizeof t);
- lprintf(9, "PASS: %s\n", t);
- extract_token(t, buf, 3, '|', sizeof t);
- lprintf(9, "ROOM: %s\n", t);
- debug */
-
- if (session != NULL)
- *session = StrBufExtract_int(Buf, 0, '|');
- if (user != NULL)
- StrBufExtract_token(user, Buf, 1, '|');
- if (pass != NULL)
- StrBufExtract_token(pass, Buf, 2, '|');
- if (room != NULL)
- StrBufExtract_token(room, Buf, 3, '|');
- FreeStrBuf(&Buf);