|
|
@ -2,7 +2,7 @@ from asyncio import StreamReader, StreamWriter, Queue |
|
|
|
from dataclasses import dataclass, field |
|
|
|
from datetime import datetime |
|
|
|
from logging import log, INFO |
|
|
|
from paircd.reply import RPL_CREATED, RPL_WELCOME, RPL_YOURHOST |
|
|
|
from paircd.reply import RPL_CREATED, RPL_MYINFO, RPL_WELCOME, RPL_YOURHOST |
|
|
|
from paircd.message import Message |
|
|
|
from typing import Set |
|
|
|
|
|
|
@ -50,6 +50,9 @@ class Client: |
|
|
|
|
|
|
|
self.write_message(RPL_WELCOME(self.nickname, self.id())) |
|
|
|
self.write_message(RPL_YOURHOST(self.nickname, "localhost", "paircd-0.0.1")) |
|
|
|
|
|
|
|
# TODO: Pull timestamp from Server instance |
|
|
|
# TODO: Pull timestamp from server instance |
|
|
|
self.write_message(RPL_CREATED(self.nickname, datetime.utcnow())) |
|
|
|
# TODO: Display list of supported user & channel modes |
|
|
|
self.write_message( |
|
|
|
RPL_MYINFO(self.nickname, "localhost", "paircd-0.0.1", "", "") |
|
|
|
) |