0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 08:42:34 +01:00

ircd:Ⓜ️:room::origins: Fix bug causing repeated last result.

This commit is contained in:
Jason Volk 2020-04-16 18:04:35 -07:00
parent 549e4df476
commit 10a1468676

View file

@ -269,10 +269,11 @@ const
{
assert(!last.empty());
assert(last.size() < sizeof(lastbuf));
repeat = 0;
lastbuf[last.size() - 1]++;
char keybuf[dbs::ROOM_JOINED_KEY_MAX_SIZE];
seek(it, dbs::room_joined_key(keybuf, room.room_id, last));
repeat = 0;
if(!seek(it, dbs::room_joined_key(keybuf, room.room_id, last)))
break;
}
}