From 655b6b211ae6df0186abd740f248939f7ddeaec1 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 31 Mar 2025 16:59:18 +0800 Subject: Add descriptive comments to most Go functions --- irc.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'irc.go') diff --git a/irc.go b/irc.go index dac9379..073bfad 100644 --- a/irc.go +++ b/irc.go @@ -120,6 +120,8 @@ func ircBotSession() error { } } +// ircSendDirect sends an IRC message directly to the connection and bypasses +// the buffering system. func ircSendDirect(s string) error { ech := make(chan error, 1) @@ -131,6 +133,7 @@ func ircSendDirect(s string) error { return <-ech } +// TODO: Delay and warnings? func ircBotLoop() { ircSendBuffered = make(chan string, config.IRC.SendQ) ircSendDirectChan = make(chan errorBack[string]) -- cgit v1.2.3