summaryrefslogtreecommitdiffstats
path: root/lib/ASM/Services.pm
diff options
context:
space:
mode:
authorLibravatarJanik Kleinhoff <ilbelkyr@shalture.org>2016-12-25 19:08:11 +0000
committerLibravatarJanik Kleinhoff <ilbelkyr@shalture.org>2016-12-25 19:08:11 +0000
commite17a73b8591741d00e7727d2dc016e3509a62033 (patch)
tree72a0da5c5249d6eff6e008fe58e30ac3260920cd /lib/ASM/Services.pm
parent29d448e4400c030fbea3210956ca8ac64399cbb2 (diff)
Split 'pass' option into 'server_pass', 'account_pass'
Also remove the --pass command-line option for now and introduce a backward compatibility check that warns when the old option is encountered. This check is now placed with the mysql option checks in a dedicated function. --- So one day, I looked over the AntiSpamMeta console log and noticed NickServ was echoing back part of the password to us in a "no such username" error. This is due to us using the 'pass' option for both nickserv and server password, so we sent PASS NickServPassword. However, the password happened to have a ':' in it, so services interpreted it as a user:password combination.
Diffstat (limited to 'lib/ASM/Services.pm')
-rw-r--r--lib/ASM/Services.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ASM/Services.pm b/lib/ASM/Services.pm
index f3da82c..5aa0741 100644
--- a/lib/ASM/Services.pm
+++ b/lib/ASM/Services.pm
@@ -27,7 +27,7 @@ sub doServices {
if ( $event->{args}->[0] =~ /^Please identify/ || $event->{args}->[0] =~ /^This nickname is registered/ )
{
$::no_autojoins = 0;
- $conn->sl("NickServ identify $::settings->{nick} $::settings->{pass}" );
+ $conn->sl("NickServ identify $::settings->{nick} $::settings->{account_pass}" );
}
elsif ( $event->{args}->[0] =~ /^You are now identified/ )
{