Log message when player joins rooms

This commit is contained in:
Ben 2019-06-21 23:10:46 +01:00
parent 2e0ad97222
commit 114a110d39

View File

@ -53,6 +53,9 @@ class Penguin(Spheniscidae):
async def join_room(self, room): async def join_room(self, room):
await room.add_penguin(self) await room.add_penguin(self)
self.logger.info('{} joined room \'{}\''.format(
self.data.username, room.name))
async def add_inventory(self, item, notify=True): async def add_inventory(self, item, notify=True):
if item.id in self.data.inventory: if item.id in self.data.inventory:
return False return False