fix for channel keys

pull/40/head
Mallory Hancock 2018-12-28 11:20:14 -08:00
parent 334ed442fd
commit 4642cece6e
1 changed files with 4 additions and 4 deletions

View File

@ -119,8 +119,8 @@ class Bot(irc.bot.SingleServerIRCBot):
self.logger.info('identifying with nickserv')
c.privmsg(self.nickserv, 'identify {}'.format(self.ns_pass))
for channel in self.chanlist:
self.logger.info('joining channel {}'.format(channel))
c.join(channel)
self.logger.info('joining channel {}'.format(channel.split()[0]))
c.join(*channel.split())
def on_pubmsg(self, c, e):
self.process_event(c, e)
@ -143,9 +143,9 @@ class Bot(irc.bot.SingleServerIRCBot):
else:
op = False
if cmd == '!join' and op:
c.join(arg)
c.join(*arg.split())
self.logger.info('joining {} per request of {}'.format(arg, nick))
output = self.output_message('{}: joined {}'.format(nick, arg))
output = self.output_message('{}: joined {}'.format(nick, arg.split()[0]))
elif cmd == '!quit' and op:
self.logger.info('quitting per request of {}'.format(nick))
c.quit("See y'all later!")