mirror of
https://github.com/jeremyd/ergo.git
synced 2026-05-01 09:59:58 -07:00
channel mode flags and member modes
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user