Skip to content

Commit 0d80d12

Browse files
committed
merge upstream
2 parents 699f500 + 4731348 commit 0d80d12

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Master
3737
- Updated IRC parser to not strip colons from beginning of messages
3838
- Updated IRC parser to not remove multiple spaces when clumped together
3939
- Fixed :func:`twitchio.Client.start` exiting immediatly
40+
- Chatters will now update correctly when someone leaves chat
4041

4142
- ext.commands
4243
- Bug fixes

twitchio/websocket.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,10 @@ async def _part(self, parsed): # TODO
385385
self._cache.pop(channel, None)
386386
channel = Channel(name=channel, websocket=self)
387387
user = Chatter(name=parsed["user"], bot=self._client, websocket=self, channel=channel, tags=parsed["badges"])
388-
388+
try:
389+
self._cache[channel.name].discard(user)
390+
except KeyError:
391+
pass
389392
self.dispatch("part", user)
390393

391394
async def _privmsg(self, parsed): # TODO(Update Cache properly)

0 commit comments

Comments
 (0)