3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02: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;
if ($keyword =~ /^([^ ]+) (.*)/) {
$self->{pbot}->{logger}->log("chopping keyword\n");
$keyword = $1;
$arguments = $2;
}
my @result = eval {
my @results;
for (my $depth = 0; $depth < 5; $depth++) {