fix for channel keys (#40)
parent
334ed442fd
commit
6c87e6d9f0
|
@ -119,8 +119,8 @@ class Bot(irc.bot.SingleServerIRCBot):
|
||||||
self.logger.info('identifying with nickserv')
|
self.logger.info('identifying with nickserv')
|
||||||
c.privmsg(self.nickserv, 'identify {}'.format(self.ns_pass))
|
c.privmsg(self.nickserv, 'identify {}'.format(self.ns_pass))
|
||||||
for channel in self.chanlist:
|
for channel in self.chanlist:
|
||||||
self.logger.info('joining channel {}'.format(channel))
|
self.logger.info('joining channel {}'.format(channel.split()[0]))
|
||||||
c.join(channel)
|
c.join(*channel.split())
|
||||||
|
|
||||||
def on_pubmsg(self, c, e):
|
def on_pubmsg(self, c, e):
|
||||||
self.process_event(c, e)
|
self.process_event(c, e)
|
||||||
|
@ -143,9 +143,9 @@ class Bot(irc.bot.SingleServerIRCBot):
|
||||||
else:
|
else:
|
||||||
op = False
|
op = False
|
||||||
if cmd == '!join' and op:
|
if cmd == '!join' and op:
|
||||||
c.join(arg)
|
c.join(*arg.split())
|
||||||
self.logger.info('joining {} per request of {}'.format(arg, nick))
|
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:
|
elif cmd == '!quit' and op:
|
||||||
self.logger.info('quitting per request of {}'.format(nick))
|
self.logger.info('quitting per request of {}'.format(nick))
|
||||||
c.quit("See y'all later!")
|
c.quit("See y'all later!")
|
||||||
|
|
Loading…
Reference in New Issue