fix: fixed some stuff

* include token when replying to a PING with a PONG
* fixed parsing of a single param with a colon
* fixed client's SendCommand() to properly send single and multi param
  messages
This commit is contained in:
2022-01-03 23:59:52 +02:00
parent 042af16c09
commit 327f59a14c
3 changed files with 27 additions and 10 deletions
+5
View File
@@ -93,6 +93,11 @@ func ParseIRCMessage(line string) IRCMessage {
parameters = append(parameters, params[1])
}
// if we have 1 param and it starts with a colon
if len(parameters) == 1 && parameters[0][0] == ':' {
parameters[0] = parameters[0][1:]
}
ircMessage.Parameters = parameters
}