Trim whitespace off IRC messages
This commit is contained in:
parent
8a62af5a73
commit
3f70567d56
3 changed files with 14 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue