]> git.0d.be Git - django-panik-nonstop.git/commitdiff
stamina: display known commands in helo message
authorFrédéric Péters <fpeters@0d.be>
Tue, 14 Jul 2020 04:21:34 +0000 (06:21 +0200)
committerFrédéric Péters <fpeters@0d.be>
Tue, 14 Jul 2020 04:21:34 +0000 (06:21 +0200)
nonstop/management/commands/stamina.py

index 4b56088ab642476dbcfb9c1456d22ab34246d91f..e83b751e8151fef71f50d5a20061936347fcd84e 100644 (file)
@@ -329,7 +329,9 @@ class Command(BaseCommand):
 
     async def handle_connection(self, reader, writer):
         writer.write(b'Watusi!\n')
+        writer.write(b'Known commands: status, softquit, hardquit\n')
         writer.write(b'(dot on empty line to stop connection)\n')
+        await writer.drain()
         end = False
         while not end:
             data = await reader.read(100)