Ver código fonte

Linkify already existing portal error message in pm command

Tulir Asokan 5 anos atrás
pai
commit
07927741bf
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      commands.go

+ 1 - 1
commands.go

@@ -763,7 +763,7 @@ func (handler *CommandHandler) CommandPM(ce *CommandEvent) {
 		if err != nil {
 			portal.log.Warnfln("Failed to invite %s to portal: %v. Creating new portal", user.MXID, err)
 		} else {
-			ce.Reply("You already have a private chat portal with that user at %s", portal.MXID)
+			ce.Reply("You already have a private chat portal with that user at [%s](https://matrix.to/#/%s)", puppet.Displayname, portal.MXID)
 			return
 		}
 	}