From 44ccf133dd44211ce1200595c7a9bea8e7609c1e Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 6 Apr 2025 10:01:02 +0800 Subject: irc: Move everything from lindenii-irc --- forged/internal/irc/bot.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'forged/internal/irc/bot.go') diff --git a/forged/internal/irc/bot.go b/forged/internal/irc/bot.go index 046799f..1c6d32f 100644 --- a/forged/internal/irc/bot.go +++ b/forged/internal/irc/bot.go @@ -10,7 +10,6 @@ import ( "net" "go.lindenii.runxiyu.org/forge/forged/internal/misc" - irc "go.lindenii.runxiyu.org/lindenii-irc" ) // Config contains IRC connection and identity settings for the bot. @@ -55,7 +54,7 @@ func (b *Bot) Connect() error { } defer underlyingConn.Close() - conn := irc.NewConn(underlyingConn) + conn := NewConn(underlyingConn) logAndWriteLn := func(s string) (n int, err error) { slog.Debug("irc tx", "line", s) @@ -103,7 +102,7 @@ func (b *Bot) Connect() error { return } case "JOIN": - c, ok := msg.Source.(irc.Client) + c, ok := msg.Source.(Client) if !ok { slog.Error("unable to convert source of JOIN to client") } -- cgit v1.2.3