Ticket #1116: enable_exit_if_not_connected-complete.patch
| File enable_exit_if_not_connected-complete.patch, 793 bytes (added by , 16 years ago) |
|---|
-
deluge/ui/console/main.py
295 295 parser._print_help(f) 296 296 parser.print_help = print_help 297 297 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 : 299 303 self.write("{!error!}Not connected to a daemon, please use the connect command first.") 300 304 return 301 305
