fix for channel keys (#40)

pull/44/head
Mal Hancock 2018-12-28 11:20:52 -08:00 committed by GitHub
parent 334ed442fd
commit 6c87e6d9f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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!")