fix: resolve gci lint errors in IRC channel files

Sort irc import alphabetically in helpers.go and fix struct field
alignment in irc.go to satisfy golangci-lint gci formatter.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Amir Mamaghani
2026-03-05 16:03:10 +01:00
parent 40b7b6ee4b
commit 1604582a41
2 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -14,9 +14,9 @@ import (
"github.com/sipeed/picoclaw/pkg/bus"
"github.com/sipeed/picoclaw/pkg/channels"
_ "github.com/sipeed/picoclaw/pkg/channels/dingtalk"
_ "github.com/sipeed/picoclaw/pkg/channels/irc"
_ "github.com/sipeed/picoclaw/pkg/channels/discord"
_ "github.com/sipeed/picoclaw/pkg/channels/feishu"
_ "github.com/sipeed/picoclaw/pkg/channels/irc"
_ "github.com/sipeed/picoclaw/pkg/channels/line"
_ "github.com/sipeed/picoclaw/pkg/channels/maixcam"
_ "github.com/sipeed/picoclaw/pkg/channels/onebot"
+10 -10
View File
@@ -51,16 +51,16 @@ func (c *IRCChannel) Start(ctx context.Context) error {
c.ctx, c.cancel = context.WithCancel(ctx)
conn := &ircevent.Connection{
Server: c.config.Server,
Nick: c.config.Nick,
User: c.config.Nick,
RealName: c.config.Nick,
Password: c.config.Password,
UseTLS: c.config.TLS,
RequestCaps: []string{"server-time", "message-tags"},
QuitMessage: "Goodbye",
Debug: false,
Log: nil,
Server: c.config.Server,
Nick: c.config.Nick,
User: c.config.Nick,
RealName: c.config.Nick,
Password: c.config.Password,
UseTLS: c.config.TLS,
RequestCaps: []string{"server-time", "message-tags"},
QuitMessage: "Goodbye",
Debug: false,
Log: nil,
}
if c.config.TLS {