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;
|
$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) {
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user