Split isupport to its' own subpackage

This commit is contained in:
Daniel Oaks 2017-10-05 23:39:57 +10:00
parent eac6a69782
commit 4aa52956e5
5 changed files with 35 additions and 29 deletions

View file

@ -3,7 +3,9 @@
package irc
func (server *Server) getISupport() *ISupportList {
import "github.com/oragono/oragono/irc/isupport"
func (server *Server) getISupport() *isupport.List {
server.configurableStateMutex.RLock()
defer server.configurableStateMutex.RUnlock()
return server.isupport