3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-02 10:09:32 +01:00

fact_find no longer treats some aliases as regex when they alias a built-in command

This commit is contained in:
Pragmatic Software 2017-10-09 19:35:11 -07:00
parent 95b16daae8
commit d771d66d8f
2 changed files with 3 additions and 7 deletions

View File

@ -278,13 +278,12 @@ sub find_factoid {
$self->{pbot}->{logger}->log("from: $from\n") if $debug; $self->{pbot}->{logger}->log("from: $from\n") if $debug;
my $string = $keyword . (defined $arguments ? " $arguments" : "");
$self->{pbot}->{logger}->log("string: $string\n") if $debug;
my @result = eval { my @result = eval {
my @results; my @results;
for (my $depth = 0; $depth < 5; $depth++) { for (my $depth = 0; $depth < 5; $depth++) {
my $string = $keyword . (defined $arguments ? " $arguments" : "");
$self->{pbot}->{logger}->log("string: $string\n") if $debug;
return undef if $self->{pbot}->{commands}->exists($keyword);
# check factoids # check factoids
foreach my $channel (sort keys %{ $self->{factoids}->hash }) { foreach my $channel (sort keys %{ $self->{factoids}->hash }) {
if($exact_channel) { if($exact_channel) {

View File

@ -515,9 +515,6 @@ sub paste_ixio {
my %post = ('f:1' => $text); my %post = ('f:1' => $text);
my $response = $ua->post("http://ix.io", \%post); my $response = $ua->post("http://ix.io", \%post);
use Data::Dumper;
print Dumper $response;
if(not $response->is_success) { if(not $response->is_success) {
return "error pasting: " . $response->status_line; return "error pasting: " . $response->status_line;
} }