Changed join() to allow joining password protected channels

This commit is contained in:
Luke Rogers 2012-08-30 07:53:42 +12:00
parent 56a656f691
commit d3c0e7440c

View file

@ -188,7 +188,7 @@ class IRC(object):
def join(self, channel):
""" makes the bot join a channel """
self.cmd("JOIN", [channel])
self.send("JOIN %s" % channel)
if channel not in self.channels:
self.channels.append(channel)