File tree 3 files changed +15
-2
lines changed
3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -320,6 +320,17 @@ Default value
320
320
Description
321
321
: The password to use for SASL authentication.
322
322
323
+ ### sasl.mechanisms
324
+ Type
325
+ : Array< Cinch::SASL::Mechanism >
326
+
327
+ Default value
328
+ : ` [Cinch::SASL::DH_Blowfish, Cinch::SASL::Plain] `
329
+
330
+ Description
331
+ : The SASL mechanisms to use. All mechanisms in the array will be
332
+ attempted, until one was successful
333
+
323
334
## server
324
335
Type
325
336
: String
Original file line number Diff line number Diff line change 1
1
require "cinch/configuration"
2
+ require "cinch/sasl"
2
3
3
4
module Cinch
4
5
class Configuration
5
6
# @since 2.0.0
6
7
class SASL < Configuration
7
- KnownOptions = [ :username , :password ]
8
+ KnownOptions = [ :username , :password , :mechanisms ]
8
9
9
10
def self . default_config
10
11
{
11
12
:username => nil ,
12
13
:password => nil ,
14
+ :mechanisms => [ Cinch ::SASL ::DH_Blowfish , Cinch ::SASL ::Plain ]
13
15
}
14
16
end
15
17
end
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ def send_sasl
210
210
def start
211
211
setup
212
212
if connect
213
- @sasl_remaining_methods = [ SASL :: Plain , SASL :: DH_Blowfish ]
213
+ @sasl_remaining_methods = @bot . config . sasl . mechanisms . reverse
214
214
send_cap_ls
215
215
send_login
216
216
You can’t perform that action at this time.
0 commit comments