1
0
Fork 0
mirror of https://github.com/fluffle/goirc synced 2025-05-12 10:41:42 +00:00

Use constants for named messages.

This commit is contained in:
Chris Rhodes 2013-03-07 17:33:56 -08:00
parent 4d7d690159
commit d1bf2c3a68
3 changed files with 62 additions and 37 deletions

View file

@ -272,7 +272,7 @@ func (conn *Conn) ping() {
for {
select {
case <-tick.C:
conn.Raw(fmt.Sprintf("PING :%d", time.Now().UnixNano()))
conn.Ping(time.Now().UnixNano())
case <-conn.cPing:
tick.Stop()
return