mirror of
https://github.com/solero/houdini.git
synced 2024-11-21 21:17:21 +00:00
Check buddy request hasn't already been accepted
This commit is contained in:
parent
1e5179d187
commit
66e062677f
@ -148,6 +148,9 @@ async def handle_buddy_accept(p, buddy_id: int):
|
|||||||
else:
|
else:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if buddy_id in p.buddies:
|
||||||
|
return
|
||||||
|
|
||||||
await p.buddies.insert(buddy_id=buddy_id)
|
await p.buddies.insert(buddy_id=buddy_id)
|
||||||
|
|
||||||
if buddy_id in p.server.penguins_by_id:
|
if buddy_id in p.server.penguins_by_id:
|
||||||
|
Loading…
Reference in New Issue
Block a user