mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
move modes code to its own file; fix SQL (un)marshalling
This commit is contained in:
parent
4ed0d78d87
commit
d85e6681d9
7 changed files with 173 additions and 136 deletions
21
irc/types.go
21
irc/types.go
|
|
@ -9,27 +9,6 @@ import (
|
|||
// simple types
|
||||
//
|
||||
|
||||
// add, remove, list modes
|
||||
type ModeOp rune
|
||||
|
||||
func (op ModeOp) String() string {
|
||||
return string(op)
|
||||
}
|
||||
|
||||
// user mode flags
|
||||
type UserMode rune
|
||||
|
||||
func (mode UserMode) String() string {
|
||||
return string(mode)
|
||||
}
|
||||
|
||||
// channel mode flags
|
||||
type ChannelMode rune
|
||||
|
||||
func (mode ChannelMode) String() string {
|
||||
return string(mode)
|
||||
}
|
||||
|
||||
type ChannelNameMap map[Name]*Channel
|
||||
|
||||
func (channels ChannelNameMap) Get(name Name) *Channel {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue