Skip to content

Commit

Permalink
Vestaboard: use :spacer: for space
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbs committed Sep 14, 2021
1 parent 26e6d10 commit d510322
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/Synergy/Reactor/Vestaboard.pm
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,16 @@ sub handle_vesta_show ($self, $event) {
}

my $display = $self->_characters_to_display_text($curr);
$event->reply("Currently on the board:\n$display");
my $reply = "Currently on the board:\n$display";

my $whitespace = $CHAR_FOR{0};

$event->reply(
$reply,
{
slack => ($reply =~ s/$whitespace/:spacer:/gr)
}
);
}

sub handle_vesta_lock ($self, $event) {
Expand Down

0 comments on commit d510322

Please sign in to comment.