mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-12 19:18:11 -07:00
move modes code to its own file; fix SQL (un)marshalling
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user