mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-06 20:19:33 +01:00
Add missing color resets to message terminals (#24)
This commit is contained in:
parent
a1e2dc8296
commit
6f0bbc1233
@ -1357,7 +1357,7 @@ sub choosecategory {
|
|||||||
|
|
||||||
my $name = $state->{players}->[$state->{current_player}]->{name};
|
my $name = $state->{players}->[$state->{current_player}]->{name};
|
||||||
my $red = $state->{counter} == $state->{max_count} ? $color{red} : '';
|
my $red = $state->{counter} == $state->{max_count} ? $color{red} : '';
|
||||||
$self->send_message($self->{channel}, "$name: $red$color{bold}$state->{counter}/$state->{max_count} Choose a category via `/msg me c <number>`:");
|
$self->send_message($self->{channel}, "$name: $red$color{bold}$state->{counter}/$state->{max_count} Choose a category via `/msg me c <number>`:$color{reset}");
|
||||||
$self->send_message($self->{channel}, "$color{bold}$state->{categories_text}$color{reset}");
|
$self->send_message($self->{channel}, "$color{bold}$state->{categories_text}$color{reset}");
|
||||||
return 'wait';
|
return 'wait';
|
||||||
}
|
}
|
||||||
@ -1556,7 +1556,7 @@ sub findtruth {
|
|||||||
|
|
||||||
my $players = join ', ', @notruth;
|
my $players = join ', ', @notruth;
|
||||||
my $red = $state->{counter} == $state->{max_count} ? $color{red} : '';
|
my $red = $state->{counter} == $state->{max_count} ? $color{red} : '';
|
||||||
$self->send_message($self->{channel}, "$players: $red$color{bold}$state->{counter}/$state->{max_count} Find the truth now via `/msg me c <number>`!");
|
$self->send_message($self->{channel}, "$players: $red$color{bold}$state->{counter}/$state->{max_count} Find the truth now via `/msg me c <number>`!$color{reset}");
|
||||||
$self->send_message($self->{channel}, "$color{bold}$state->{current_choices_text}$color{reset}");
|
$self->send_message($self->{channel}, "$color{bold}$state->{current_choices_text}$color{reset}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user