aboutsummaryrefslogtreecommitdiff
path: root/irc.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-31 16:59:18 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-31 16:59:18 +0800
commit655b6b211ae6df0186abd740f248939f7ddeaec1 (patch)
treeec5cdbbc52222f62c8fbb0bcf2a1aa7a9f6eb8b6 /irc.go
parentCorrect table headers in MR indices (diff)
downloadforge-655b6b211ae6df0186abd740f248939f7ddeaec1.tar.gz
forge-655b6b211ae6df0186abd740f248939f7ddeaec1.tar.zst
forge-655b6b211ae6df0186abd740f248939f7ddeaec1.zip
Add descriptive comments to most Go functions
Diffstat (limited to 'irc.go')
-rw-r--r--irc.go3
1 files changed, 3 insertions, 0 deletions
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])