From dc824ea96667b60ede3ac62b75f18e1faded977d Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Mon, 24 Mar 2025 16:59:26 -0400 Subject: initial support for triggered lua functions --- utils.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'utils.go') diff --git a/utils.go b/utils.go index 6bf0015..d990504 100644 --- a/utils.go +++ b/utils.go @@ -7,6 +7,13 @@ import ( "github.com/lrstanley/girc" ) +func Min(x, y int) int { + if x < y { + return x + } + return y +} + func IrcJoin(irc *girc.Client, channel []string) { if len(channel) > 1 && channel[1] != "" { irc.Cmd.JoinKey(channel[0], channel[1]) -- cgit v1.2.3