forked from External/ergo
fix #1479
Give Tor clients who authenticate via SASL a unique cloak, so chanops can ban *!*@tor-network.onion and still allow authenticated Tor users
This commit is contained in:
parent
f2a40b9e5d
commit
d1f8317180
2 changed files with 21 additions and 0 deletions
|
|
@ -307,6 +307,13 @@ func (client *Client) setAccountName(name string) {
|
|||
client.accountName = name
|
||||
}
|
||||
|
||||
func (client *Client) setCloakedHostname(cloak string) {
|
||||
client.stateMutex.Lock()
|
||||
defer client.stateMutex.Unlock()
|
||||
client.cloakedHostname = cloak
|
||||
client.updateNickMaskNoMutex()
|
||||
}
|
||||
|
||||
func (client *Client) historyCutoff() (cutoff time.Time) {
|
||||
client.stateMutex.Lock()
|
||||
if client.account != "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue