summaryrefslogtreecommitdiff
path: root/lib/rbot/core/utils/agent.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbot/core/utils/agent.rb')
-rw-r--r--lib/rbot/core/utils/agent.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rbot/core/utils/agent.rb b/lib/rbot/core/utils/agent.rb
index 8949a5c8..2140879d 100644
--- a/lib/rbot/core/utils/agent.rb
+++ b/lib/rbot/core/utils/agent.rb
@@ -52,13 +52,13 @@ class AgentFactory
end
# Returns a new, unique instance of Mechanize.
- def create(noproxy=false)
+ def create
agent = Mechanize.new
agent.redirection_limit = @bot.config['agent.max_redir']
if not @bot.config['agent.ssl_verify']
agent.agent.http.verify_mode = OpenSSL::SSL::VERIFY_NONE
end
- if @bot.config['agent.proxy_use'] and not noproxy
+ if @bot.config['agent.proxy_use']
agent.set_proxy(
@bot.config['agent.proxy_host'],
@bot.config['agent.proxy_port'],