mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 12:29:27 +01:00
Spinach: er, use \s not \b to get word count for one word detection
This commit is contained in:
parent
7bec7a0320
commit
14601ef5f5
@ -750,8 +750,8 @@ sub spinach_cmd {
|
|||||||
|
|
||||||
$arguments = $self->normalize_text($arguments);
|
$arguments = $self->normalize_text($arguments);
|
||||||
|
|
||||||
my @truth_count = split /\b/, $self->{state_data}->{current_question}->{answer};
|
my @truth_count = split /\s/, $self->{state_data}->{current_question}->{answer};
|
||||||
my @lie_count = split /b/, $arguments;
|
my @lie_count = split /\s/, $arguments;
|
||||||
|
|
||||||
if (@truth_count > 1 and @lie_count == 1) {
|
if (@truth_count > 1 and @lie_count == 1) {
|
||||||
return "/msg $nick Your lie cannot be one word for this question. Please try again.";
|
return "/msg $nick Your lie cannot be one word for this question. Please try again.";
|
||||||
|
Loading…
Reference in New Issue
Block a user