mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Webutilified.
This commit is contained in:
parent
5549322771
commit
aaef8cdf70
@ -45,7 +45,6 @@ import sys
|
|||||||
import math
|
import math
|
||||||
import random
|
import random
|
||||||
import string
|
import string
|
||||||
import urllib2
|
|
||||||
|
|
||||||
# Stupid printing on import...
|
# Stupid printing on import...
|
||||||
from cStringIO import StringIO
|
from cStringIO import StringIO
|
||||||
@ -54,6 +53,7 @@ import this
|
|||||||
sys.stdout = sys.__stdout__
|
sys.stdout = sys.__stdout__
|
||||||
|
|
||||||
import utils
|
import utils
|
||||||
|
import webutils
|
||||||
import ircutils
|
import ircutils
|
||||||
import privmsgs
|
import privmsgs
|
||||||
import callbacks
|
import callbacks
|
||||||
@ -190,9 +190,7 @@ class Python(callbacks.PrivmsgCommandAndRegexp, plugins.Configurable):
|
|||||||
if not self.configurables.get('aspn-snarfer', channel=msg.args[0]):
|
if not self.configurables.get('aspn-snarfer', channel=msg.args[0]):
|
||||||
return
|
return
|
||||||
url = match.group(0)
|
url = match.group(0)
|
||||||
fd = urllib2.urlopen(url)
|
s = webutils.getUrl(url)
|
||||||
s = fd.read()
|
|
||||||
fd.close()
|
|
||||||
resp = []
|
resp = []
|
||||||
for r in self._searches:
|
for r in self._searches:
|
||||||
m = r.search(s)
|
m = r.search(s)
|
||||||
|
Loading…
Reference in New Issue
Block a user