1
0
Fork 0
forked from External/ergo

channel mode flags and member modes

This commit is contained in:
Jeremy Latt 2014-02-14 21:57:08 -08:00
parent 6983d1930c
commit 0bfa2fb98f
4 changed files with 119 additions and 29 deletions

View file

@ -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
}