def reconnect(self): """ reconnect and if succesfull join channels. """ if Irc.reconnect(self): self.joinchannels()