Skip to content

Commit

Permalink
add a knob to disable automatic eggdrop.conf edits
Browse files Browse the repository at this point in the history
  • Loading branch information
grawity committed Jan 10, 2019
1 parent bbd55ff commit 31bfc4d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion g_scram.tcl
Expand Up @@ -12,6 +12,8 @@ if {[namespace exists ::pbkdf2] == ""} {
die "You must load g_pbkdf2.tcl first."
}

set sasl-scram-auto-upgrade 1

proc scram:escape {str} {
return [string map {= =3D , =2C} $str]
}
Expand Down Expand Up @@ -45,8 +47,10 @@ proc scram:xorbuf {a b} {
}

proc scram:upgrade-config {pass} {
putlog "SCRAM: You should now change sasl-pass to this token: \"$pass\""
global config
global sasl-scram-auto-upgrade
putlog "SCRAM: You should now change sasl-pass to this token: \"$pass\""
if {${sasl-scram-auto-upgrade} == 0} {return}
catch {
putlog "SCRAM: Automatically storing password hash in $config"
set map {\" \\\" \{ \\\{ \} \\\} $ \\$ [ \\[ ] \\] \\ \\\\}
Expand Down

0 comments on commit 31bfc4d

Please sign in to comment.