python ircd using asyncio
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

15 lines
479 B

from paircd.client import Client
from paircd.command_handler import CommandHandler
from paircd.message import Message
from paircd.server import Server
class QuitHandler(CommandHandler):
def __init__(self) -> None:
super().__init__("QUIT")
async def handle(self, server: Server, client: Client, msg: Message) -> None:
quit_msg = ""
if len(msg.args) == 1:
quit_msg = msg.args[0]
await client.quit(server, f"Quit: {quit_msg}")