def output(self, channel, user, options): try: if options.restart: self._bot.disconnect(' '.join(options.msg) if options.msg else 'Restarting') else: self._bot.close() self._bot.disconnect(' '.join(options.msg) if options.msg else "I'll be back") except Exception: Log.error('QircBot.parse_cmd: ') finally: Log.stop() return False