Skip to content

Commit

Permalink
Fixed set channel command output (close #177)
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Oct 14, 2020
1 parent 9f1736b commit caa97b8
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions CurseBreaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,14 +571,17 @@ def c_toggle(self, args):
elif status == -1:
self.console.print('[bold red]This feature can be only used with CurseForge addons.[/bold red]')
elif status == 0:
self.console.print('All CurseForge addons are now switched'
if args == 'global' else 'Addon switched to the [yellow]beta[/yellow] channel.')
self.console.print(
'All CurseForge addons are now switched' if args == 'global' else 'Addon switched',
'to the [yellow]beta[/yellow] channel.')
elif status == 1:
self.console.print('All CurseForge addons are now switched'
if args == 'global' else 'Addon switched to the [red]alpha[/red] channel.')
self.console.print(
'All CurseForge addons are now switched' if args == 'global' else 'Addon switched',
'to the [red]alpha[/red] channel.')
elif status == 2:
self.console.print('All CurseForge addons are now switched'
if args == 'global' else 'Addon switched to the [green]stable[/green] channel.')
self.console.print(
'All CurseForge addons are now switched' if args == 'global' else 'Addon switched',
'to the [green]stable[/green] channel.')
else:
self.console.print('[green]Usage:[/green]\n\tThis command accepts an addon name (or "global") as an'
' argument.', highlight=False)
Expand Down

0 comments on commit caa97b8

Please sign in to comment.