summaryrefslogtreecommitdiffstats
path: root/lib/Crawl/Bot/Wiki.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Crawl/Bot/Wiki.pm')
-rw-r--r--lib/Crawl/Bot/Wiki.pm9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/Crawl/Bot/Wiki.pm b/lib/Crawl/Bot/Wiki.pm
index dea004b..bffc925 100644
--- a/lib/Crawl/Bot/Wiki.pm
+++ b/lib/Crawl/Bot/Wiki.pm
@@ -8,7 +8,7 @@ has bot => (
isa => 'Crawl::Bot',
required => 1,
weak_ref => 1,
- handles => [qw(say channels)],
+ handles => [qw(say_all)],
);
has xmlrpc_location => (
@@ -49,11 +49,8 @@ sub tick {
if ($page =~ /(===?=?=?=?) (.*) \1/) {
$name = $2;
}
- $self->say(
- channel => $_,
- body => "$change->{author} created page $name at "
- . $self->wiki_base . "$change->{name}",
- ) for $self->channels;
+ $self->say_all("$change->{author} created page $name at "
+ . $self->wiki_base . "$change->{name}");
}
}