3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-23 03:02:47 +01:00

Spaces-in-factoids not yet ready

This commit is contained in:
Pragmatic Software 2010-05-22 01:26:26 +00:00
parent fd971fd3e3
commit 220a2ec46b

View File

@ -175,9 +175,9 @@ sub interpret {
($keyword, $arguments, $tonick) = ($2, $3, $1);
} elsif($command =~ /^tell\s+(.{1,20})\s+about\s+(.*)$/) {
($keyword, $tonick) = ($2, $1);
} elsif($command =~ /^(.*?)\s+is\s+also\s+(.*)$/) {
} elsif($command =~ /^([^ ]+)\s+is\s+also\s+(.*)$/) {
($keyword, $arguments) = ("change", "$1 s|\$| - $2|");
} elsif($command =~ /^(.*?)\s+is\s+(.*)$/) {
} elsif($command =~ /^([^ ]+)\s+is\s+(.*)$/) {
($keyword, $arguments) = ("add", join(' is ', $1, $2)) unless exists ${ $pbot->factoids }{factoids}{$1};
($keyword, $arguments) = ($1, "is $2") if exists ${ $pbot->factoids }{factoids}{$1};
} elsif($command =~ /^(.*?)\s+(.*)$/) {