diff -r 1818d56c8ff5 -r a2fe9ba3041a irc.py --- a/irc.py Mon Nov 10 02:11:57 2014 +0200 +++ b/irc.py Mon Nov 10 02:30:31 2014 +0200 @@ -179,9 +179,9 @@ channel = self.cfg.append_nodelist ('channels') channel.set_value ('name', channame) - self.channels = cfg.get_nodelist ('channels') + self.channels = self.cfg.get_nodelist ('channels') self.write ('JOIN ' + channame) - self.save_config() + self.cfg.save() def remove_irc_channel (self, channame): for channel in self.channels: @@ -192,7 +192,7 @@ return self.write ('PART ' + channame) - self.save_config() + self.cfg.save() def handle_command (self, sender, ident, host, replyto, command, args, message): kvargs = {'sender': sender, 'ident': ident, 'host': host, 'replyto': replyto, 'cmdname': command, 'message': message}