瀏覽代碼

Linkify already existing portal error message in pm command

Tulir Asokan 5 年之前
父節點
當前提交
07927741bf
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
 		}
 	}