fixed bug where disable account would crash the running instance
authorGeorgios Atheridis <atheridis@tutamail.com>
Wed, 1 Jun 2022 10:39:07 +0000 (13:39 +0300)
committerGeorgios Atheridis <atheridis@tutamail.com>
Wed, 1 Jun 2022 10:39:07 +0000 (13:39 +0300)
aptbot/args_logic.py

index 2bc5709392207bb716de7c295bc7a1b3b50d38e7..8d143a2f064e5634e88133d146893184a7ed8a2c 100644 (file)
@@ -61,7 +61,7 @@ def disable_account(s: socket.socket, acc: str):
         print(f"Account {acc} is already disabled.")
 
     command = BotCommands.PART.value
-    channel = ""
+    channel = acc
     msg = ""
     try:
         s.send(bytes(f"{command}==={channel}==={msg}", "utf-8"))