Commit b7cf2e93 authored by Mindiell's avatar Mindiell

No more giving the title of an url

parent 4b65a302
......@@ -166,9 +166,9 @@ class Wantzel(object):
user = re.search("([^!]*)!", user).group(1)
#print("Message received: %s %s %s" % (user, channel, msg))
# Whatever is done, get the title of an existing url in a message
title = ""
if "http" in msg:
title, website = get_title(msg)
#title = ""
#if "http" in msg:
# title, website = get_title(msg)
# Never answer to botself
if user!=config.nickname:
# If it's a query, bot should answer to the user as the channel
......@@ -192,8 +192,9 @@ class Wantzel(object):
self.stats(user, channel, msg)
elif command=="admin":
self.admin(user, channel, msg)
if title and website:
self.send_message(channel, messages["title"] % (title, website))
# No more giving the title of an url
#if title and website:
# self.send_message(channel, messages["title"] % (title, website))
def help(self, user, channel, msg):
"""
......
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