aboutsummaryrefslogtreecommitdiff
path: root/cmd_nick.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-12-08 10:13:58 +0800
committerRunxi Yu <me@runxiyu.org>2024-12-08 10:13:58 +0800
commit7fe8fe6c9fff814b88929026384f1851ff321781 (patch)
tree3e79a8579d06047519f1f19843dcc74579060970 /cmd_nick.go
parentClient teardown and proper nick changes (diff)
downloadmeseircd-7fe8fe6c9fff814b88929026384f1851ff321781.tar.gz
meseircd-7fe8fe6c9fff814b88929026384f1851ff321781.tar.zst
meseircd-7fe8fe6c9fff814b88929026384f1851ff321781.zip
Registration
Diffstat (limited to 'cmd_nick.go')
-rw-r--r--cmd_nick.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd_nick.go b/cmd_nick.go
index 89ee4d9..1c847e5 100644
--- a/cmd_nick.go
+++ b/cmd_nick.go
@@ -28,5 +28,8 @@ func handleClientNick(msg RMsg, client *Client) bool {
}
client.Nick = msg.Params[0]
}
+ if client.State == ClientStatePreRegistration {
+ client.checkRegistration()
+ }
return true
}