natsim

NATS ↔ Instant Messaging Bridge
git clone https://git.instinctive.eu/natsim.git
Log | Files | Refs | README | LICENSE

commit a9f6405239c93474964fe10499aa43c152815eda
parent 3a1f8232b698e3e789656c1b12818cadb80c4f67
Author: Natasha Kerensikova <natgh@instinctive.eu>
Date:   Sun, 20 Jul 2025 18:10:05 +0000

Quoted data command
Diffstat:
Mmain.go | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/main.go b/main.go @@ -426,6 +426,13 @@ func (natsim *NatsIM) doCommands() { natsim.curMsg.Header[key] = append(natsim.curMsg.Header[key], value) } + case "qdata": + if unquoted, err := strconv.Unquote(cmd.arg); err != nil { + natsim.ircSendError("Unquote", err) + } else { + natsim.curMsg.Data = []byte(unquoted) + } + case "reply-to": fallthrough case "replyto":