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): ...@@ -105,7 +105,7 @@ def get_url(message):
# Let's get the url # Let's get the url
result = re.search("(https?[^ ]+)", message) result = re.search("(https?[^ ]+)", message)
if not result: if not result:
return "http" return
url = result.group(1) url = result.group(1)
# Removing anchor if needed # Removing anchor if needed
result = re.search("^([^#]*)", url) result = re.search("^([^#]*)", url)
...@@ -285,10 +285,7 @@ class Wantzel(object): ...@@ -285,10 +285,7 @@ class Wantzel(object):
note = 1 note = 1
url = get_url(msg) url = get_url(msg)
Utils.debug("url: %s" % url) Utils.debug("url: %s" % url)
if url == "": if not url:
return
elif url == "http":
self.send_message(channel, messages["rp_http"] % user)
return return
# Looking for such an article in database # 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