Compare commits

..

1 Commits

Author SHA1 Message Date
3af09d6234
Implement automatic channel joining
Avoid the need for an administrator to join the bot to channels by
implementing a configuration option allowing the passing of channels
the bot should always join to by itself upon startup.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2024-09-21 18:45:03 +02:00

View File

@ -38,7 +38,8 @@ func CleanNick(nick string) string {
}
func PrefixChannel(channel string) string {
if channel[0] != '#' {
// there could theoretically be other channel prefixes ..
if channel[0] != '#' || channel[0] != '!' {
channel = "#" + channel
}
return channel