mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-19 10:29:30 +01:00
Spaces-in-factoids not yet ready
This commit is contained in:
parent
fd971fd3e3
commit
220a2ec46b
@ -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+(.*)$/) {
|
||||
|
Loading…
Reference in New Issue
Block a user