mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
spelling and gofmt
This commit is contained in:
parent
34b01b115e
commit
2272aae213
@ -6,14 +6,14 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Channel struct {
|
type Channel struct {
|
||||||
flags ChannelModeSet
|
flags ChannelModeSet
|
||||||
lists map[ChannelMode]*UserMaskSet
|
lists map[ChannelMode]*UserMaskSet
|
||||||
key Text
|
key Text
|
||||||
members MemberSet
|
members MemberSet
|
||||||
name Name
|
name Name
|
||||||
server *Server
|
server *Server
|
||||||
topic Text
|
topic Text
|
||||||
userLimit uint64
|
userLimit uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewChannel creates a new channel from a `Server` and a `name`
|
// NewChannel creates a new channel from a `Server` and a `name`
|
||||||
|
@ -13,27 +13,27 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Client struct {
|
type Client struct {
|
||||||
atime time.Time
|
atime time.Time
|
||||||
authorized bool
|
authorized bool
|
||||||
awayMessage Text
|
awayMessage Text
|
||||||
capabilities CapabilitySet
|
capabilities CapabilitySet
|
||||||
capState CapState
|
capState CapState
|
||||||
channels ChannelSet
|
channels ChannelSet
|
||||||
commands chan Command
|
commands chan Command
|
||||||
ctime time.Time
|
ctime time.Time
|
||||||
flags map[UserMode]bool
|
flags map[UserMode]bool
|
||||||
hasQuit bool
|
hasQuit bool
|
||||||
hops uint
|
hops uint
|
||||||
hostname Name
|
hostname Name
|
||||||
idleTimer *time.Timer
|
idleTimer *time.Timer
|
||||||
loginTimer *time.Timer
|
loginTimer *time.Timer
|
||||||
nick Name
|
nick Name
|
||||||
quitTimer *time.Timer
|
quitTimer *time.Timer
|
||||||
realname Text
|
realname Text
|
||||||
registered bool
|
registered bool
|
||||||
server *Server
|
server *Server
|
||||||
socket *Socket
|
socket *Socket
|
||||||
username Name
|
username Name
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewClient(server *Server, conn net.Conn) *Client {
|
func NewClient(server *Server, conn net.Conn) *Client {
|
||||||
|
@ -65,7 +65,7 @@ func (text Text) String() string {
|
|||||||
return string(text)
|
return string(text)
|
||||||
}
|
}
|
||||||
|
|
||||||
// CTCPText is text suitable escaped for CTCP.
|
// CTCPText is text suitably escaped for CTCP.
|
||||||
type CTCPText string
|
type CTCPText string
|
||||||
|
|
||||||
var ctcpEscaper = strings.NewReplacer("\x00", "\x200", "\n", "\x20n", "\r", "\x20r")
|
var ctcpEscaper = strings.NewReplacer("\x00", "\x200", "\n", "\x20n", "\r", "\x20r")
|
||||||
|
Loading…
Reference in New Issue
Block a user