Bläddra i källkod

Merge pull request #1247 from slingamn/config_cleanup

remove stray references to timeout enforcement
tags/v2.3.0-rc2
Shivaram Lingamneni 3 år sedan
förälder
incheckning
fda23264ad
Inget konto är kopplat till bidragsgivarens mejladress
3 ändrade filer med 1 tillägg och 12 borttagningar
  1. 0
    5
      conventional.yaml
  2. 0
    5
      default.yaml
  3. 1
    2
      irc/config.go

+ 0
- 5
conventional.yaml Visa fil

@@ -359,8 +359,6 @@ accounts:
359 359
         additional-nick-limit: 2
360 360
 
361 361
         # method describes how nickname reservation is handled
362
-        #   timeout:  let the user change to the registered nickname, give them X seconds
363
-        #             to login and then rename them if they haven't done so
364 362
         #   strict:   don't let the user change to the registered nickname unless they're
365 363
         #             already logged-in using SASL or NickServ
366 364
         #   optional: no enforcement by default, but allow users to opt in to
@@ -374,9 +372,6 @@ accounts:
374 372
         # to opt out of strict enforcement
375 373
         allow-custom-enforcement: true
376 374
 
377
-        # rename-timeout - this is how long users have 'til they're renamed
378
-        rename-timeout: 30s
379
-
380 375
         # format for guest nicknames:
381 376
         # 1. these nicknames cannot be registered or reserved
382 377
         # 2. if a client is automatically renamed by the server,

+ 0
- 5
default.yaml Visa fil

@@ -387,8 +387,6 @@ accounts:
387 387
         additional-nick-limit: 2
388 388
 
389 389
         # method describes how nickname reservation is handled
390
-        #   timeout:  let the user change to the registered nickname, give them X seconds
391
-        #             to login and then rename them if they haven't done so
392 390
         #   strict:   don't let the user change to the registered nickname unless they're
393 391
         #             already logged-in using SASL or NickServ
394 392
         #   optional: no enforcement by default, but allow users to opt in to
@@ -402,9 +400,6 @@ accounts:
402 400
         # to opt out of strict enforcement
403 401
         allow-custom-enforcement: false
404 402
 
405
-        # rename-timeout - this is how long users have 'til they're renamed
406
-        rename-timeout: 30s
407
-
408 403
         # format for guest nicknames:
409 404
         # 1. these nicknames cannot be registered or reserved
410 405
         # 2. if a client is automatically renamed by the server,

+ 1
- 2
irc/config.go Visa fil

@@ -267,8 +267,7 @@ type AccountConfig struct {
267 267
 		Enabled                bool
268 268
 		AdditionalNickLimit    int `yaml:"additional-nick-limit"`
269 269
 		Method                 NickEnforcementMethod
270
-		AllowCustomEnforcement bool          `yaml:"allow-custom-enforcement"`
271
-		RenameTimeout          time.Duration `yaml:"rename-timeout"`
270
+		AllowCustomEnforcement bool `yaml:"allow-custom-enforcement"`
272 271
 		// RenamePrefix is the legacy field, GuestFormat is the new version
273 272
 		RenamePrefix           string `yaml:"rename-prefix"`
274 273
 		GuestFormat            string `yaml:"guest-nickname-format"`

Laddar…
Avbryt
Spara