3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-23 12:29:27 +01:00

Factoids: keywords can now contain spaces

This commit is contained in:
Pragmatic Software 2019-06-09 09:54:42 -07:00
parent fb8f965912
commit b3ac27758d

View File

@ -280,12 +280,6 @@ sub find_factoid {
$self->{pbot}->{logger}->log("from: $from\n") if $debug; $self->{pbot}->{logger}->log("from: $from\n") if $debug;
if ($keyword =~ /^([^ ]+) (.*)/) {
$self->{pbot}->{logger}->log("chopping keyword\n");
$keyword = $1;
$arguments = $2;
}
my @result = eval { my @result = eval {
my @results; my @results;
for (my $depth = 0; $depth < 5; $depth++) { for (my $depth = 0; $depth < 5; $depth++) {