forked from External/ergo
pass the require-sasl message through from the script
This commit is contained in:
parent
7f13ec14cc
commit
f3cdf8442a
3 changed files with 13 additions and 2 deletions
|
|
@ -101,6 +101,7 @@ type Client struct {
|
|||
cloakedHostname string
|
||||
realname string
|
||||
realIP net.IP
|
||||
requireSASLMessage string
|
||||
requireSASL bool
|
||||
registered bool
|
||||
registrationTimer *time.Timer
|
||||
|
|
@ -353,6 +354,9 @@ func (server *Server) RunClient(conn IRCConn) {
|
|||
proxiedIP: proxiedIP,
|
||||
requireSASL: requireSASL,
|
||||
}
|
||||
if requireSASL {
|
||||
client.requireSASLMessage = banMsg
|
||||
}
|
||||
client.writerSemaphore.Initialize(1)
|
||||
client.history.Initialize(config.History.ClientLength, time.Duration(config.History.AutoresizeWindow))
|
||||
client.brbTimer.Initialize(client)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue