persistent channels persisted to a sqlite db

This commit is contained in:
Jeremy Latt 2014-02-25 11:11:34 -08:00
parent de5538f5d5
commit 02abeeb164
6 changed files with 112 additions and 5 deletions

View file

@ -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) {