diff options
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/tittilate.pm | 2 | ||||
-rw-r--r-- | plugin/url_title.pm | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plugin/tittilate.pm b/plugin/tittilate.pm index d9d8a49..51253ec 100644 --- a/plugin/tittilate.pm +++ b/plugin/tittilate.pm @@ -15,7 +15,7 @@ sub configure { } sub message { - my ($self, $me, $who, $where, $raw_what, $what) = @_; + my ($self, $logger, $me, $who, $where, $raw_what, $what) = @_; my $gathered = ""; my @expressions = (keys %{$config{triggers}}); my $expression = join '|', @expressions; diff --git a/plugin/url_title.pm b/plugin/url_title.pm index f36ad6d..1c376df 100644 --- a/plugin/url_title.pm +++ b/plugin/url_title.pm @@ -18,7 +18,7 @@ sub configure { sub message { - my ($self, $me, $who, $where, $raw_what, $what) = @_; + my ($self, $logger, $me, $who, $where, $raw_what, $what) = @_; my $url; if ($what =~ /(https?:\/\/[^ ]+)/i) { @@ -31,12 +31,12 @@ sub message my $response = $http->get($url); if (!$response->{success}) { - print "Something broke: $response->{reason}\n"; + $logger->("Something broke: $response->{reason}"); return; } if (!($response->{headers}->{"content-type"} =~ m,text/html ?,)) { - print("Not html, giving up now\n"); + $logger->("Not html, giving up now"); return; } |