mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 12:29:27 +01:00
fact_find no longer treats some aliases as regex when they alias a built-in command
This commit is contained in:
parent
95b16daae8
commit
d771d66d8f
@ -278,13 +278,12 @@ sub find_factoid {
|
||||
|
||||
$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 @results;
|
||||
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
|
||||
foreach my $channel (sort keys %{ $self->{factoids}->hash }) {
|
||||
if($exact_channel) {
|
||||
|
@ -515,9 +515,6 @@ sub paste_ixio {
|
||||
my %post = ('f:1' => $text);
|
||||
my $response = $ua->post("http://ix.io", \%post);
|
||||
|
||||
use Data::Dumper;
|
||||
print Dumper $response;
|
||||
|
||||
if(not $response->is_success) {
|
||||
return "error pasting: " . $response->status_line;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user