summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-15 00:30:32 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-15 00:30:32 +0000
commit37c94175806f0c75feb344124b7e5e884791f74d (patch)
treec7c87344a30c115f77702a34043663401ccfbc40 /lib/rbot
parent7d665ab68a88b01431c7b51153507c9a98fd6333 (diff)
Allow all printable 7-bit ASCII characters in passwords
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/botuser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/botuser.rb b/lib/rbot/botuser.rb
index c0041d7f..4e35e5f3 100644
--- a/lib/rbot/botuser.rb
+++ b/lib/rbot/botuser.rb
@@ -268,7 +268,7 @@ module Irc
reset_password
else
begin
- raise InvalidPassword, "#{pass} contains invalid characters" if pass !~ /^[A-Za-z0-9]+$/
+ raise InvalidPassword, "#{pass} contains invalid characters" if pass !~ /^[\x21-\x7e]+$/
raise InvalidPassword, "#{pass} too short" if pass.length < 4
@password = pass
rescue InvalidPassword => e