From 14601ef5f56a5c653f7fcb3d6409e321099df3ec Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Mon, 13 May 2019 18:04:09 -0700 Subject: [PATCH] Spinach: er, use \s not \b to get word count for one word detection --- PBot/Plugins/Spinach.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PBot/Plugins/Spinach.pm b/PBot/Plugins/Spinach.pm index 06322ea3..2170d887 100644 --- a/PBot/Plugins/Spinach.pm +++ b/PBot/Plugins/Spinach.pm @@ -750,8 +750,8 @@ sub spinach_cmd { $arguments = $self->normalize_text($arguments); - my @truth_count = split /\b/, $self->{state_data}->{current_question}->{answer}; - my @lie_count = split /b/, $arguments; + my @truth_count = split /\s/, $self->{state_data}->{current_question}->{answer}; + my @lie_count = split /\s/, $arguments; if (@truth_count > 1 and @lie_count == 1) { return "/msg $nick Your lie cannot be one word for this question. Please try again.";