summaryrefslogtreecommitdiffstats
path: root/lib/Bot/Games/Game/Ghost.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bot/Games/Game/Ghost.pm')
-rw-r--r--lib/Bot/Games/Game/Ghost.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bot/Games/Game/Ghost.pm b/lib/Bot/Games/Game/Ghost.pm
index 4f5baf6..c59b7cd 100644
--- a/lib/Bot/Games/Game/Ghost.pm
+++ b/lib/Bot/Games/Game/Ghost.pm
@@ -98,8 +98,8 @@ command challenge => sub {
# player loses, otherwise the current player loses.
if ($self->valid_word($word)) {
return "$word is a word! "
- . $self->has_challenger ? $self->challenger
- : $self->previous_player
+ . ($self->has_challenger ? $self->challenger
+ : $self->previous_player)
. " loses!";
}
else {