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