Minor bugfix

This commit is contained in:
Andreas Neue 2016-08-02 17:40:50 +02:00
parent 58a01fe89f
commit 41f024616c
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ func (m *Message) String() string {
args += " " + arg
}
if m.Trail != "" {
return fmt.Sprintf(":%s %s%s :%s", m.Pre, m.Cmd, args, m.Trail)
return fmt.Sprintf(":%s %s%s :%s", m.Pre, m.Cmd, args, strings.Replace(m.Trail, "%", "%%", -1))
}
return fmt.Sprintf(":%s %s%s", m.Pre, m.Cmd, args)
}