From db124980e9eec6de8c952dfeb677643b8b89e711 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Mon, 21 Nov 2011 00:10:16 +1300 Subject: [PATCH] Updated bot useragent --- plugins/util/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/util/http.py b/plugins/util/http.py index 0aaa1b6..9374bc7 100644 --- a/plugins/util/http.py +++ b/plugins/util/http.py @@ -14,7 +14,7 @@ from urllib2 import HTTPError, URLError from lxml import etree, html -ua_skybot = 'Cloudbot/3.4 http://github.com/lukeroge/cloudbot' +ua_cloudbot = 'Cloudbot/DEV http://github.com/lukeroge/cloudbot' ua_firefox = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) ' \ 'Gecko/20070725 Firefox/2.0.0.6' @@ -45,7 +45,7 @@ def open(url, query_params=None, user_agent=None, post_data=None, query_params = {} if user_agent is None: - user_agent = ua_skybot + user_agent = ua_cloudbot query_params.update(kwargs)