Commit 9afc96ab authored by Mindiell's avatar Mindiell

Stop annoying people trying to explain how wantzel works: everyone can now say...

Stop annoying people trying to explain how wantzel works: everyone can now say ~rp without wantzel spam chan.
parent 8c95ae6c
......@@ -105,7 +105,7 @@ def get_url(message):
# Let's get the url
result = re.search("(https?[^ ]+)", message)
if not result:
return "http"
return
url = result.group(1)
# Removing anchor if needed
result = re.search("^([^#]*)", url)
......@@ -285,10 +285,7 @@ class Wantzel(object):
note = 1
url = get_url(msg)
Utils.debug("url: %s" % url)
if url == "":
return
elif url == "http":
self.send_message(channel, messages["rp_http"] % user)
if not url:
return
# Looking for such an article in database
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment