0

Implement grabbing +B flag, connect command sequence fixes

* Implement i-am-bot, +B, flag grabbing.
* Move collections to internal packages.
* Postpone nickserv login sequence to 376 and 422 events, as it should be after motd message
* Postpone join channels to 376 and 422 events, as it should be after motd message
This commit is contained in:
eleksir
2025-03-30 15:41:46 +03:00
parent 4ca2fffb33
commit 8c24a1d8c6
7 changed files with 184 additions and 40 deletions

View File

@@ -4,6 +4,9 @@ import (
"context"
"os"
"aleesa-irc-go/internal/anycollection"
"aleesa-irc-go/internal/boolcollection"
"github.com/cockroachdb/pebble"
"github.com/go-redis/redis/v8"
irc "github.com/thoj/go-ircevent"
@@ -45,6 +48,12 @@ var msgBucket bucket
var settingsDB = make(map[string]*pebble.DB)
// "Базюлька" с MODE-ами пользователей на каналах
var userMode = NewCollection()
var userMode = anycollection.NewCollection()
// "Базюлька" с доступными MODE-ами пользователя
var availableUserModes = boolcollection.NewCollection()
// "Базюлька" c с доступными MODE-ами каналов
var availableChanModes = boolcollection.NewCollection()
/* vim: set ft=go noet ai ts=4 sw=4 sts=4: */