aboutsummaryrefslogtreecommitdiff
path: root/cmd_nick.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-12-12 08:05:46 +0800
committerRunxi Yu <me@runxiyu.org>2024-12-12 08:05:46 +0800
commit3b7e9385f3004fa70ce4ee5b3e8e6abdb7bd2f10 (patch)
treea9c6a02223b1e4f18390e075ea9fd0351953b4c0 /cmd_nick.go
parentUse CID instead of connection pointers while logging (diff)
downloadmeseircd-3b7e9385f3004fa70ce4ee5b3e8e6abdb7bd2f10.tar.gz
meseircd-3b7e9385f3004fa70ce4ee5b3e8e6abdb7bd2f10.tar.zst
meseircd-3b7e9385f3004fa70ce4ee5b3e8e6abdb7bd2f10.zip
Use meselog instead of slog
Diffstat (limited to 'cmd_nick.go')
-rw-r--r--cmd_nick.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd_nick.go b/cmd_nick.go
index 4c84a37..0ca7173 100644
--- a/cmd_nick.go
+++ b/cmd_nick.go
@@ -2,7 +2,7 @@ package main
import (
"fmt"
- "log/slog"
+ "git.sr.ht/~runxiyu/meseircd/meselog"
)
func init() {
@@ -23,7 +23,7 @@ func handleClientNick(msg RMsg, client *Client) error {
}
} else {
if (client.State >= ClientStateRegistered || client.Nick != "*") && !nickToClient.CompareAndDelete(client.Nick, client) {
- slog.Error("nick inconsistent", "nick", client.Nick, "client", client)
+ meselog.Error("nick inconsistent", "nick", client.Nick, "client", client)
return fmt.Errorf("%w: %v", ErrInconsistentClient, client)
}
if client.State == ClientStateRegistered {