from common import log, do_everything_to def process_event(self, connection, event): log.info(event) # Handy for debugging. Keep this. self.db.run("UPDATE rotbot_host SET connection_succeeds = connection_succeeds + 1 WHERE id=%s", [self.network.id]) if self.network.password: # Id with NickServ connection.privmsg("NickServ", "identify " + self.network.password) # Identify with NickServ. #channels = self.db.all("SELECT name FROM rotbot_channels WHERE network='" + self.network.id + "' AND autojoin=True") connection.mode(connection.get_nickname(), "+x") do_everything_to.join(self, connection, self.network.home_channel) #for channel in channels: # Join channels with autojoin function. # connection.join(channel)