mirror of
https://github.com/fluffle/goirc
synced 2025-07-04 04:19:23 +00:00
Epic final commit for nick/chan/logging/testing refactor.
* Brings logging changes to client library. * Brings state tracker to client library. * Rewrites all tests to use mock logger and mock state tracker. * Makes state tracking optional, finally. * Shaves yaks until they are almost completely bald.
This commit is contained in:
parent
69d52270b6
commit
85097043cf
7 changed files with 525 additions and 577 deletions
|
@ -1,7 +1,6 @@
|
|||
package client
|
||||
|
||||
import (
|
||||
"github.com/fluffle/goirc/logging"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
@ -34,9 +33,7 @@ func parseLine(s string) *Line {
|
|||
line.Src, s = s[1:idx], s[idx+1:]
|
||||
} else {
|
||||
// pretty sure we shouldn't get here ...
|
||||
logging.Warn("Parsing of line '%s' didn't go well.", s)
|
||||
line.Src = s[1:]
|
||||
return line
|
||||
return nil
|
||||
}
|
||||
|
||||
// src can be the hostname of the irc server or a nick!user@host
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue