    # File lib/rbot/botuser.rb, line 394
          def password=(pwd=nil)
            pass = pwd.to_s
            if pass.empty?
              reset_password
            else
              begin
                raise InvalidPassword, "#{pass} contains invalid characters" if pass !~ /^[\x21-\x7e]+$/
                raise InvalidPassword, "#{pass} too short" if pass.length < 4
                @password = pass
              rescue InvalidPassword => e
                raise e
              rescue => e
                raise InvalidPassword, "Exception #{e.inspect} while checking #{pass.inspect} (#{pwd.inspect})"
              end
            end
          end