Ticket #1116: enable_exit_if_not_connected-complete.patch

File enable_exit_if_not_connected-complete.patch, 793 bytes (added by cdep_illabout, 16 years ago)
  • deluge/ui/console/main.py

     
    295295                parser._print_help(f)
    296296        parser.print_help = print_help
    297297
    298         if not client.connected() and cmd not in ("help", "connect", "quit"):
     298        if not client.connected() and \
     299                cmd not in ("help", "connect", "quit") and \
     300                cmd not in self._commands["help"].aliases and \
     301                cmd not in self._commands["connect"].aliases and \
     302                cmd not in self._commands["quit"].aliases :
    299303            self.write("{!error!}Not connected to a daemon, please use the connect command first.")
    300304            return
    301305