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:
@@ -83,7 +83,7 @@ func (s State) Update(msg tea.Msg) (State, tea.Cmd) {
|
||||
// TODO: handle different commands
|
||||
switch message.Command {
|
||||
case "PING":
|
||||
s.Client.SendCommand("PONG")
|
||||
s.Client.SendCommand("PONG", message.Parameters[0])
|
||||
break
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user