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:
parent
fb8f965912
commit
b3ac27758d
@ -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++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user