]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
agent: remove proxy opt-out for plugins
authorMatthias H <apoc@sixserv.org>
Sun, 11 Jan 2015 08:20:09 +0000 (09:20 +0100)
committerMatthias H <apoc@sixserv.org>
Sun, 11 Jan 2015 08:20:09 +0000 (09:20 +0100)
lib/rbot/core/utils/agent.rb

index 8949a5c83ffcdf7c217c9ec63aa3e32e0c46a44b..2140879db1aa4be7c1e302e596496dbedec1950f 100644 (file)
@@ -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'],