forked from External/ergo
fix various data races, including 2 introduced by #139
This commit is contained in:
parent
58fb997e77
commit
23a66fa502
5 changed files with 82 additions and 43 deletions
|
|
@ -142,7 +142,7 @@ func (il *ISupportList) RegenerateCachedReply() {
|
|||
|
||||
// RplISupport outputs our ISUPPORT lines to the client. This is used on connection and in VERSION responses.
|
||||
func (client *Client) RplISupport() {
|
||||
for _, tokenline := range client.server.isupport.CachedReply {
|
||||
for _, tokenline := range client.server.getISupport().CachedReply {
|
||||
// ugly trickery ahead
|
||||
client.Send(nil, client.server.name, RPL_ISUPPORT, append([]string{client.nick}, tokenline...)...)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue