소스 검색

add an explanatory comment

tags/v2.2.0-rc1
Shivaram Lingamneni 4 년 전
부모
커밋
21e604860f
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4
    0
      irc/strings.go

+ 4
- 0
irc/strings.go 파일 보기

@@ -50,6 +50,10 @@ const (
50 50
 // this happens-before all IRC connections and all casefolding operations.
51 51
 var globalCasemappingSetting Casemapping = CasemappingPRECIS
52 52
 
53
+// XXX analogous unsynchronized global variable controlling utf8 validation
54
+// if this is off, you get the traditional IRC behavior (relaying any valid RFC1459
55
+// octets) and invalid utf8 messages are silently dropped for websocket clients only.
56
+// if this is on, invalid utf8 inputs get an ERR_UNKNOWNERROR.
53 57
 var globalUtf8EnforcementSetting bool
54 58
 
55 59
 // Each pass of PRECIS casefolding is a composition of idempotent operations,

Loading…
취소
저장