mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-05-01 07:51:10 -05:00
SpiffyTitles: Better Proxy Formatting
This commit is contained in:
parent
d93428af0d
commit
52d087873c
@ -69,8 +69,10 @@ class SpiffyTitles(callbacks.Plugin):
|
|||||||
self.proxies["https"] = None
|
self.proxies["https"] = None
|
||||||
proxy = str(conf.supybot.protocols.http.proxy)
|
proxy = str(conf.supybot.protocols.http.proxy)
|
||||||
if proxy:
|
if proxy:
|
||||||
self.proxies["http"] = "http://{0}".format(proxy)
|
if "http" not in proxy:
|
||||||
self.proxies["https"] = "https://{0}".format(proxy)
|
proxy = "http://{0}".format(proxy)
|
||||||
|
self.proxies["http"] = proxy
|
||||||
|
self.proxies["https"] = proxy
|
||||||
|
|
||||||
def add_handlers(self):
|
def add_handlers(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user