commit b0df765fb1a28f2864906f9f797490149ae3d10b
parent 0b08ce30f7faf6cee285b89fc9215fe5bce2331b
Author: Natasha Kerensikova <natgh@instinctive.eu>
Date: Thu, 24 Jul 2025 18:50:07 +0000
New inbox command
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/main.go b/main.go
@@ -429,6 +429,13 @@ func (natsim *NatsIM) doCommands() {
natsim.curMsg.Header[key] = append(natsim.curMsg.Header[key], value)
}
+ case "new-inbox":
+ fallthrough
+ case "newinbox":
+ inbox := natsim.nc.NewInbox()
+ natsim.curMsg.Reply = inbox
+ natsim.ircSendf("Reply-To: %q", inbox)
+
case "qdata":
if unquoted, err := strconv.Unquote(cmd.arg); err != nil {
natsim.ircSendError("Unquote", err)