mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-29 02:08:12 -07:00
fix #190
This commit is contained in:
@@ -6,8 +6,17 @@ package irc
|
||||
import (
|
||||
"github.com/oragono/oragono/irc/isupport"
|
||||
"github.com/oragono/oragono/irc/modes"
|
||||
"sync/atomic"
|
||||
)
|
||||
|
||||
func (server *Server) MaxSendQBytes() int {
|
||||
return int(atomic.LoadUint64(&server.maxSendQBytes))
|
||||
}
|
||||
|
||||
func (server *Server) SetMaxSendQBytes(m int) {
|
||||
atomic.StoreUint64(&server.maxSendQBytes, uint64(m))
|
||||
}
|
||||
|
||||
func (server *Server) ISupport() *isupport.List {
|
||||
server.configurableStateMutex.RLock()
|
||||
defer server.configurableStateMutex.RUnlock()
|
||||
|
||||
Reference in New Issue
Block a user