Skip to content

Commit

Permalink
fuch
Browse files Browse the repository at this point in the history
  • Loading branch information
themanyfaceddemon committed Sep 23, 2024
1 parent 0f44a5a commit b497d3b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions DMBotNetwork/main/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,12 @@ async def broadcast(cls, func_name: str, *args, **kwargs) -> None:
await asyncio.gather(*tasks)

@classmethod
async def remove_user(cls, login: str, remove_from_db: bool = False) -> None:
if remove_from_db:
await ServerDB.delete_user(login)

async def remove_user(cls, login: str) -> None:
await ServerDB.delete_user(login)
cl_unit = cls._cl_units.get(login, None)

if cl_unit is not None:
await cl_unit.disconnect("Remove from server")
await cl_unit.disconnect("Removed from server")

@classmethod
async def _cl_handler(
Expand Down

0 comments on commit b497d3b

Please sign in to comment.