|
@@ -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,
|