浏览代码

review fix

tags/v1.1.0-rc1
Shivaram Lingamneni 5 年前
父节点
当前提交
71cc9a1adf
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      irc/handlers.go
  2. 1
    1
      languages/example/irc.lang.json

+ 1
- 1
irc/handlers.go 查看文件

@@ -590,7 +590,7 @@ func capHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *Respo
590 590
 			rb.Add(nil, server.name, "CAP", details.nick, "NAK", capString)
591 591
 			return false
592 592
 		} else if toAdd.Has(caps.Nope) && !client.registered {
593
-			client.Quit(client.t("Requesting the oragono.io/nope CAP is forbidden"), rb.session)
593
+			client.Quit(fmt.Sprintf(client.t("Requesting the %s client capability is forbidden"), caps.Nope.Name()), rb.session)
594 594
 			return true
595 595
 		}
596 596
 

+ 1
- 1
languages/example/irc.lang.json 查看文件

@@ -158,7 +158,7 @@
158 158
   "Remote servers not yet supported": "Remote servers not yet supported",
159 159
   "Removed D-Line for %s": "Removed D-Line for %s",
160 160
   "Removed K-Line for %s": "Removed K-Line for %s",
161
-  "Requesting the oragono.io/nope CAP is forbidden": "Requesting the oragono.io/nope CAP is forbidden",
161
+  "Requesting the %s client capability is forbidden": "Requesting the %s client capability is forbidden",
162 162
   "Resume may have lost up to %d seconds of history": "Resume may have lost up to %d seconds of history",
163 163
   "SASL authentication aborted": "SASL authentication aborted",
164 164
   "SASL authentication failed": "SASL authentication failed",

正在加载...
取消
保存