aboutsummaryrefslogtreecommitdiff
path: root/irclog.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-25 01:02:57 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-25 10:13:59 +0800
commit31358bfdf570e1b482fe4eefa75b5de4063e0ef1 (patch)
tree740cc068996c87df0187ac822ab36c479651283c /irclog.go
parentNo wonder that didn't work (diff)
downloadpowxy-31358bfdf570e1b482fe4eefa75b5de4063e0ef1.tar.gz
powxy-31358bfdf570e1b482fe4eefa75b5de4063e0ef1.tar.zst
powxy-31358bfdf570e1b482fe4eefa75b5de4063e0ef1.zip
configurable irc logging
Diffstat (limited to '')
-rw-r--r--irclog.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/irclog.go b/irclog.go
index f9a7da8..f5c0f81 100644
--- a/irclog.go
+++ b/irclog.go
@@ -28,7 +28,7 @@ func (h *IRCLogHandler) Enabled(_ context.Context, level slog.Level) bool {
func (h *IRCLogHandler) Handle(_ context.Context, r slog.Record) error {
var sb strings.Builder
- sb.WriteString("PRIVMSG #logs :")
+ sb.WriteString("PRIVMSG " + ircChannel + " :")
sb.WriteString(r.Message)