diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-06 10:01:02 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-06 10:02:40 +0800 |
commit | 44ccf133dd44211ce1200595c7a9bea8e7609c1e (patch) | |
tree | a27ef21a3dcbbcafa2ca1d748501fe708d67ced2 /forged/internal/irc/bot.go | |
parent | Add more documentation comments (diff) | |
download | forge-44ccf133dd44211ce1200595c7a9bea8e7609c1e.tar.gz forge-44ccf133dd44211ce1200595c7a9bea8e7609c1e.tar.zst forge-44ccf133dd44211ce1200595c7a9bea8e7609c1e.zip |
irc: Move everything from lindenii-irc
Diffstat (limited to '')
-rw-r--r-- | forged/internal/irc/bot.go | 5 |
1 files changed, 2 insertions, 3 deletions
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") } |