diff options
Diffstat (limited to 'lib/rbot/botuser.rb')
-rw-r--r-- | lib/rbot/botuser.rb | 2 |
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
|