feat: parse tags and negotiate message-tags capability

This commit is contained in:
2021-12-09 05:14:20 +02:00
parent f40ddfd67c
commit c3f75c2a43
3 changed files with 23 additions and 10 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ func (s State) Update(msg tea.Msg) (State, tea.Cmd) {
return s, s.readFromServer
case ReceivedIRCCommandMsg:
message := parser.ParseIRCMessage(msg.Msg)
fullMsg := fmt.Sprintf("%s %s %s", message.Source, message.Command, strings.Join(message.Parameters, " "))
fullMsg := fmt.Sprintf("%s %s %s %s", message.Tags, message.Source, message.Command, strings.Join(message.Parameters, " "))
s.content += fullMsg
// TODO: handle different commands