Check buddy request hasn't already been accepted

This commit is contained in:
Ben 2020-05-26 00:54:04 +01:00
parent 1e5179d187
commit 66e062677f

View File

@ -148,6 +148,9 @@ async def handle_buddy_accept(p, buddy_id: int):
else:
return
if buddy_id in p.buddies:
return
await p.buddies.insert(buddy_id=buddy_id)
if buddy_id in p.server.penguins_by_id: