mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 19:45:11 +00:00
[ADD/WIP] XMPP->Matrix avatar, start bridging bans
I still hate XEP-0084.
This commit is contained in:
parent
a3bef5c0c1
commit
1f658ece76
9 changed files with 587 additions and 27 deletions
|
|
@ -113,7 +113,7 @@ const static IoFunctions Functions = {
|
|||
};
|
||||
|
||||
Stream *
|
||||
StrStreamReader(char *buffer)
|
||||
StrStreamReaderN(char *buffer, int n)
|
||||
{
|
||||
Io *raw_io;
|
||||
ReaderCookie *cookie;
|
||||
|
|
@ -124,7 +124,7 @@ StrStreamReader(char *buffer)
|
|||
|
||||
cookie = Malloc(sizeof(*cookie));
|
||||
cookie->buffer = buffer;
|
||||
cookie->length = strlen(buffer);
|
||||
cookie->length = n ? n : strlen(buffer);
|
||||
cookie->offset = 0;
|
||||
raw_io = IoCreate(cookie, Functions);
|
||||
return StreamIo(raw_io);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue