diff options
author | Neil Moore <neil@s-z.org> | 2012-12-09 15:38:05 -0600 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2012-12-09 15:38:05 -0600 |
commit | 7f19580bd252b106202ac4f698d6e139ce774262 (patch) | |
tree | 035887365c3a2b0088f9941bb711fa2d7a3b1f89 | |
parent | 30085a4862d13b215ef246f57cb217df7b061ac8 (diff) | |
download | crawlbot-7f19580bd252b106202ac4f698d6e139ce774262.tar.gz crawlbot-7f19580bd252b106202ac4f698d6e139ce774262.zip |
Disable wiki plugin by default.
Since it didn't work.
-rw-r--r-- | lib/Crawl/Bot/Plugin/Wiki.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Crawl/Bot/Plugin/Wiki.pm b/lib/Crawl/Bot/Plugin/Wiki.pm index eaeea7e..c1712bd 100644 --- a/lib/Crawl/Bot/Plugin/Wiki.pm +++ b/lib/Crawl/Bot/Plugin/Wiki.pm @@ -25,6 +25,12 @@ has last_checked => ( isa => 'Int', ); +has enabled => ( + is => 'ro', + isa => 'Bool', + default => 0 +); + sub login_file_name { my $self = shift; @@ -56,6 +62,7 @@ sub login_wiki { sub tick { local $_; my $self = shift; + return unless $self->enabled; my $last_checked = $self->last_checked; $self->last_checked(time); return unless $last_checked; |