浏览代码

clarify comment on CAP byte arithmetic

tags/v2.8.0
Shivaram Lingamneni 2 年前
父节点
当前提交
dc75b24d23
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      irc/handlers.go

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

@@ -517,8 +517,8 @@ func capHandler(server *Server, client *Client, msg ircmsg.Message, rb *Response
517 517
 		// 1. WeeChat 1.4 won't accept the CAP reply unless it contains the server.name source
518 518
 		// 2. old versions of Kiwi and The Lounge can't parse multiline CAP LS 302 (#661),
519 519
 		// so try as hard as possible to get the response to fit on one line.
520
-		// :server.name CAP * LS * :<tokens>
521
-		// 1           7         4
520
+		// :server.name CAP * LS * :<tokens>\r\n
521
+		// 1           [ 7   ]  [4 ]        [2 ]
522 522
 		maxLen := (MaxLineLen - 2) - 1 - len(server.name) - 7 - len(subCommand) - 4
523 523
 		capLines := cset.Strings(version, values, maxLen)
524 524
 		for i, capStr := range capLines {

正在加载...
取消
保存