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
+1 -1
View File
@@ -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
}