Removed http related code, therefore making this work when LXML is missing
This commit is contained in:
parent
f9ddfaaad5
commit
1670e1d8ac
1 changed files with 1 additions and 4 deletions
|
@ -4,7 +4,7 @@ import subprocess
|
|||
import platform
|
||||
import time
|
||||
|
||||
from util import hook, http
|
||||
from util import hook
|
||||
|
||||
socket.setdefaulttimeout(10)
|
||||
|
||||
|
@ -51,9 +51,6 @@ def onjoin(paraml, conn=None, bot=None):
|
|||
conn.join(channel)
|
||||
time.sleep(1)
|
||||
|
||||
# HTTP Useragent
|
||||
http.ua_cloudbot = 'CloudBot - http://git.io/cloudbotirc'
|
||||
|
||||
# Stay-alive code
|
||||
stayalive = conn.conf.get('stayalive')
|
||||
if stayalive:
|
||||
|
|
Reference in a new issue