diff options
author | Wim <wim@42.be> | 2018-05-09 22:48:39 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2018-05-09 22:48:39 +0200 |
commit | 521a7ed7b0b70d886f5863d453963dc35bc0c850 (patch) | |
tree | 3fbc5ebdff573fc4bfd8941895959672f8931b4b /vendor/github.com/lrstanley/girc/conn.go | |
parent | 529b188164b7b0f18ca31a43410898e73a22ed03 (diff) | |
download | matterbridge-msglm-521a7ed7b0b70d886f5863d453963dc35bc0c850.tar.gz matterbridge-msglm-521a7ed7b0b70d886f5863d453963dc35bc0c850.tar.bz2 matterbridge-msglm-521a7ed7b0b70d886f5863d453963dc35bc0c850.zip |
Update vendor lrstanley/girc
Diffstat (limited to 'vendor/github.com/lrstanley/girc/conn.go')
-rw-r--r-- | vendor/github.com/lrstanley/girc/conn.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vendor/github.com/lrstanley/girc/conn.go b/vendor/github.com/lrstanley/girc/conn.go index a46a5dd7..77d87988 100644 --- a/vendor/github.com/lrstanley/girc/conn.go +++ b/vendor/github.com/lrstanley/girc/conn.go @@ -371,6 +371,12 @@ func (c *Client) readLoop(ctx context.Context, errs chan error, wg *sync.WaitGro return } + // Check if it's an echo-message. + if !c.Config.disableTracking { + event.Echo = (event.Command == PRIVMSG || event.Command == NOTICE) && + event.Source != nil && event.Source.Name == c.GetNick() + } + c.rx <- event } } @@ -500,7 +506,7 @@ type ErrTimedOut struct { Delay time.Duration } -func (ErrTimedOut) Error() string { return "timed out during ping to server" } +func (ErrTimedOut) Error() string { return "timed out waiting for a requested PING response" } func (c *Client) pingLoop(ctx context.Context, errs chan error, wg *sync.WaitGroup) { // Don't run the pingLoop if they want to disable it. |