forked from External/ergo
channel mode flags and member modes
This commit is contained in:
parent
6983d1930c
commit
0bfa2fb98f
4 changed files with 119 additions and 29 deletions
|
|
@ -135,9 +135,9 @@ func (s *Server) listen(config ListenerConfig) {
|
|||
}
|
||||
|
||||
func (s *Server) GetOrMakeChannel(name string) *Channel {
|
||||
channel := s.channels[name]
|
||||
channel, ok := s.channels[name]
|
||||
|
||||
if channel == nil {
|
||||
if !ok {
|
||||
channel = NewChannel(s, name)
|
||||
s.channels[name] = channel
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue