Browse Source

clarify comment on CAP byte arithmetic

tags/v2.8.0
Shivaram Lingamneni 2 years ago
parent
commit
dc75b24d23
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      irc/handlers.go

+ 2
- 2
irc/handlers.go View File

517
 		// 1. WeeChat 1.4 won't accept the CAP reply unless it contains the server.name source
517
 		// 1. WeeChat 1.4 won't accept the CAP reply unless it contains the server.name source
518
 		// 2. old versions of Kiwi and The Lounge can't parse multiline CAP LS 302 (#661),
518
 		// 2. old versions of Kiwi and The Lounge can't parse multiline CAP LS 302 (#661),
519
 		// so try as hard as possible to get the response to fit on one line.
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
 		maxLen := (MaxLineLen - 2) - 1 - len(server.name) - 7 - len(subCommand) - 4
522
 		maxLen := (MaxLineLen - 2) - 1 - len(server.name) - 7 - len(subCommand) - 4
523
 		capLines := cset.Strings(version, values, maxLen)
523
 		capLines := cset.Strings(version, values, maxLen)
524
 		for i, capStr := range capLines {
524
 		for i, capStr := range capLines {

Loading…
Cancel
Save