Permalink
Browse files

fix frank stumbling non PRIVMSGs w/o trailing

  • Loading branch information...
breunigs committed Mar 22, 2017
1 parent 5a04b3d commit eb5f7dd3afe71ba9c40d3d0606c9af1073055b08
Showing with 10 additions and 0 deletions.
  1. +10 −0 frank.go
@@ -147,6 +147,16 @@ func parse(msg string) {
return
}
// Work around incorrect parsing when a single word PRIVMSG is not formatted
// as a trailing message, see: github.com/robustirc/robustirc/issues/129
// We should probably wait for github.com/sorcix/irc/issues/26 to be fixed and
// then use that parsing library in favor of the lesser/unmaintained
// husio/irc.
if parsed.Trailing == "" && len(parsed.Params) == 2 {
parsed.Trailing = parsed.Params[1]
parsed.Params = parsed.Params[:1]
}
if parsed.Command == "PONG" {
return
}

0 comments on commit eb5f7dd

Please sign in to comment.