Made it snarf all URLs, not just ftp/http.

This commit is contained in:
Jeremy Fincher 2003-08-19 17:23:06 +00:00
parent fa518894cc
commit 866916f8c0

View File

@ -82,7 +82,7 @@ class URLSnarfer(callbacks.Privmsg, ChannelDBHandler):
db.commit()
return db
_urlRe = re.compile(r"((?:ftp|http)://\S+)", re.I)
_urlRe = re.compile(r"(\S+://\S+)", re.I)
def doPrivmsg(self, irc, msg):
callbacks.Privmsg.doPrivmsg(self, irc, msg)
channel = msg.args[0]