diff options
Diffstat (limited to 'vendor/github.com/lrstanley/girc/event.go')
-rw-r--r-- | vendor/github.com/lrstanley/girc/event.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vendor/github.com/lrstanley/girc/event.go b/vendor/github.com/lrstanley/girc/event.go index 3eb187f9..0ca06976 100644 --- a/vendor/github.com/lrstanley/girc/event.go +++ b/vendor/github.com/lrstanley/girc/event.go @@ -283,7 +283,6 @@ func (e *Event) Bytes() []byte { // Space separated list of arguments. if len(e.Params) > 0 { - // buffer.WriteByte(eventSpace) for i := 0; i < len(e.Params); i++ { if i == len(e.Params)-1 && (strings.Contains(e.Params[i], " ") || strings.HasPrefix(e.Params[i], ":") || e.Params[i] == "") { buffer.WriteString(string(eventSpace) + string(messagePrefix) + e.Params[i]) @@ -621,7 +620,7 @@ func (s *Source) IsHostmask() bool { // IsServer returns true if this source looks like a server name. func (s *Source) IsServer() bool { - return len(s.Ident) <= 0 && len(s.Host) <= 0 + return s.Ident == "" && s.Host == "" } // writeTo is an utility function to write the source to the bytes.Buffer |