mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
persistent channels persisted to a sqlite db
This commit is contained in:
parent
de5538f5d5
commit
02abeeb164
6 changed files with 112 additions and 5 deletions
10
irc/types.go
10
irc/types.go
|
|
@ -106,6 +106,16 @@ func (clients ClientNameMap) Remove(client *Client) error {
|
|||
|
||||
type ChannelModeSet map[ChannelMode]bool
|
||||
|
||||
func (set ChannelModeSet) String() string {
|
||||
strs := make([]string, len(set))
|
||||
index := 0
|
||||
for mode := range set {
|
||||
strs[index] = mode.String()
|
||||
index += 1
|
||||
}
|
||||
return strings.Join(strs, "")
|
||||
}
|
||||
|
||||
type ClientSet map[*Client]bool
|
||||
|
||||
func (clients ClientSet) Add(client *Client) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue