mirror of
https://github.com/IllusionMan1212/gorc.git
synced 2026-10-24 02:12:33 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user