mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-23 11:31:55 -08:00
Update for Go 1.
This commit is contained in:
parent
4114a83d64
commit
e46a65109f
31 changed files with 901 additions and 202 deletions
15
channel.go
15
channel.go
|
|
@ -10,15 +10,14 @@ import (
|
|||
|
||||
// A Mumble channel
|
||||
type Channel struct {
|
||||
Id int
|
||||
Name string
|
||||
Position int
|
||||
|
||||
Id int
|
||||
Name string
|
||||
Position int
|
||||
|
||||
temporary bool
|
||||
clients map[uint32]*Client
|
||||
parent *Channel
|
||||
children map[int]*Channel
|
||||
clients map[uint32]*Client
|
||||
parent *Channel
|
||||
children map[int]*Channel
|
||||
|
||||
// ACL
|
||||
ACL []*ChannelACL
|
||||
|
|
@ -131,4 +130,4 @@ func (channel *Channel) IsTemporary() bool {
|
|||
// Checks whether the channel is temporary
|
||||
func (channel *Channel) IsEmpty() bool {
|
||||
return len(channel.clients) == 0
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue