mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-22 18:52:41 +01:00
Display umode; delete a bunch of data structures for features that won't be implemented.
This commit is contained in:
parent
5acc36409a
commit
c99bc6b453
@ -6,26 +6,12 @@ type Channel struct {
|
||||
key string
|
||||
topic string
|
||||
members ClientSet
|
||||
operators ClientSet
|
||||
creators ClientSet
|
||||
voiced ClientSet
|
||||
invites map[string]bool
|
||||
// modes
|
||||
anonymous bool
|
||||
inviteOnly bool
|
||||
moderated bool
|
||||
noOutside bool
|
||||
quiet bool
|
||||
private bool
|
||||
secret bool
|
||||
serverReop bool
|
||||
operTopic bool
|
||||
// modes with args
|
||||
password string
|
||||
userLimit int
|
||||
banMask string
|
||||
banExceptMask string
|
||||
inviteMask string
|
||||
}
|
||||
|
||||
type ChannelSet map[*Channel]bool
|
||||
|
@ -77,10 +77,14 @@ func (c *Client) Nick() string {
|
||||
}
|
||||
|
||||
func (c *Client) UModeString() string {
|
||||
mode := "+"
|
||||
if c.invisible {
|
||||
return "+i"
|
||||
mode += "i"
|
||||
}
|
||||
return ""
|
||||
if c.wallOps {
|
||||
mode += "w"
|
||||
}
|
||||
return mode
|
||||
}
|
||||
|
||||
func (c *Client) HasNick() bool {
|
||||
|
@ -77,7 +77,7 @@ func RplCreated(server *Server) Reply {
|
||||
|
||||
func RplMyInfo(server *Server) Reply {
|
||||
return NewReply(server, RPL_MYINFO,
|
||||
fmt.Sprintf("%s %s iwroO ik", server.name, VERSION))
|
||||
fmt.Sprintf("%s %s w ikn", server.name, VERSION))
|
||||
}
|
||||
|
||||
func RplUModeIs(server *Server, client *Client) Reply {
|
||||
|
Loading…
Reference in New Issue
Block a user