Trim whitespace off IRC messages

This commit is contained in:
Ken-Håvard Lieng 2017-07-03 23:31:14 +02:00
parent 8a62af5a73
commit 3f70567d56
3 changed files with 14 additions and 2 deletions

View file

@ -19,7 +19,7 @@ func (m *Message) LastParam() string {
}
func parseMessage(line string) *Message {
line = strings.Trim(line, "\r\n")
line = strings.Trim(line, "\r\n ")
msg := Message{}
cmdStart := 0
cmdEnd := len(line)