diff options
author | Wim <wim@42.be> | 2019-09-07 21:35:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-07 21:35:45 +0200 |
commit | 1532f6e42798d1071c8a97423e838338bed7b570 (patch) | |
tree | 4ae23c4a5da97e8c1d86a28460340fa2cb5e1c78 /vendor/github.com/lrstanley/girc/builtin.go | |
parent | 9327810bbfe9cf0da2415d223fc642d943ff2ade (diff) | |
download | matterbridge-msglm-1532f6e42798d1071c8a97423e838338bed7b570.tar.gz matterbridge-msglm-1532f6e42798d1071c8a97423e838338bed7b570.tar.bz2 matterbridge-msglm-1532f6e42798d1071c8a97423e838338bed7b570.zip |
Update lrstanley/girc vendor (#884)
Diffstat (limited to 'vendor/github.com/lrstanley/girc/builtin.go')
-rw-r--r-- | vendor/github.com/lrstanley/girc/builtin.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vendor/github.com/lrstanley/girc/builtin.go b/vendor/github.com/lrstanley/girc/builtin.go index 7f285fda..778a5c68 100644 --- a/vendor/github.com/lrstanley/girc/builtin.go +++ b/vendor/github.com/lrstanley/girc/builtin.go @@ -93,7 +93,11 @@ func handleConnect(c *Client, e Event) { } time.Sleep(2 * time.Second) - c.RunHandlers(&Event{Command: CONNECTED, Params: []string{c.Server()}}) + + c.mu.RLock() + server := c.server() + c.mu.RUnlock() + c.RunHandlers(&Event{Command: CONNECTED, Params: []string{server}}) } // nickCollisionHandler helps prevent the client from having conflicting |