This commit is contained in:
.[d]. 2021-02-12 15:28:50 -06:00
parent fc708b21a9
commit d51004baeb
2 changed files with 4 additions and 2 deletions

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"python.pythonPath": "/bin/python3"
}

View File

@ -87,9 +87,8 @@ class Plugin:
# Ignore Non text/html but report content/size
if not content_type.startswith("text/html"):
ipdb.set_trace()
try:
msg = "\x02{nick1:}\x0F\x02\x0303 ▶▶ [con_type]: {content_type:} ▶▶ [con_length]: {content_length:} ▶▶ \x0F\x02\x0312{d_url:}\x0F\x0303".format(nick1=mask.nick,con_type=content_type,con_length=content_length,d_url=url)
msg = "\x02{nick1:}\x0F\x02\x0303 ▶▶ [content_type]: {con_type:} ▶▶ [content_length]: {con_length:} ▶▶ \x0F\x02\x0312{d_url:}\x0F\x0303".format(nick1=mask.nick,con_type=content_type,con_length=content_length,d_url=url)
except:
msg = "wu/tang: pre-fetch of non text/html failed"
msg = self.bot._emoj(msg)