aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-12-08 09:49:40 +0800
committerRunxi Yu <me@runxiyu.org>2024-12-08 09:49:40 +0800
commit112722f1c8de842f6c8b672ea73b3cae182274ba (patch)
tree41cc23dc14b36c3c53b1dbb18cad7d334e9758af /main.go
parentPrimitive client states (diff)
downloadmeseircd-112722f1c8de842f6c8b672ea73b3cae182274ba.tar.gz
meseircd-112722f1c8de842f6c8b672ea73b3cae182274ba.tar.zst
meseircd-112722f1c8de842f6c8b672ea73b3cae182274ba.zip
Primitive nick registration
Diffstat (limited to '')
-rw-r--r--main.go5
1 files changed, 4 insertions, 1 deletions
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()