From 112722f1c8de842f6c8b672ea73b3cae182274ba Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 8 Dec 2024 09:49:40 +0800 Subject: Primitive nick registration --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index fdff8b2..75afd08 100644 --- a/main.go +++ b/main.go @@ -14,7 +14,7 @@ func main() { self = Server{ conn: nil, - SID: [3]byte{'1', 'H', 'C'}, + SID: "001", Name: "irc.runxiyu.org", } @@ -34,7 +34,10 @@ func main() { conn: &conn, Server: self, State: ClientStatePreRegistration, + UID: "blah", + Nick: "*", } + // TODO: Add to the UID table and make actually unique UIDs go func() { defer func() { (*client.conn).Close() -- cgit v1.2.3