summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/lrstanley/girc/conn.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/lrstanley/girc/conn.go')
-rw-r--r--vendor/github.com/lrstanley/girc/conn.go8
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.