Commit fae4e862 authored by Mindiell's avatar Mindiell

No more hello message

parent ca112f58
......@@ -133,7 +133,6 @@ class Wantzel(object):
This method set the methods to call for each callback received from IRC.
"""
self.irc.client.privmsg = self.on_privmsg
self.irc.client.joined = self.on_joined
def send_message(self, channel, messages):
"""
......@@ -196,17 +195,6 @@ class Wantzel(object):
if title and website:
self.send_message(channel, messages["title"] % (title, website))
def on_joined(self, channel):
"""
Say hello to everyone.
"""
print("Joined channel %s" % channel)
# Specific message for specific channel
if "hello_"+channel[1:] in messages:
self.send_message(channel, messages["hello_"+channel[1:]])
else:
self.send_message(channel, messages["hello"])
def help(self, user, channel, msg):
"""
Show global help.
......
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