From ee64b338fbf25ac140934e300a395664c98b78ba Mon Sep 17 00:00:00 2001 From: Neil Moore Date: Sun, 8 Jul 2012 23:12:39 -0500 Subject: Whitespace fixes. --- lib/Crawl/Bot/Plugin/Commit.pm | 2 +- lib/Crawl/Bot/Plugin/Logging.pm | 8 ++++---- lib/Crawl/Bot/Plugin/Monster.pm | 7 +++---- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/lib/Crawl/Bot/Plugin/Commit.pm b/lib/Crawl/Bot/Plugin/Commit.pm index 2af95aa..e0d158a 100644 --- a/lib/Crawl/Bot/Plugin/Commit.pm +++ b/lib/Crawl/Bot/Plugin/Commit.pm @@ -64,7 +64,7 @@ sub said { $self->say(@keys, "$commit->{author} * r$abbr: $commit->{subject} " . "($commit->{date}, $commit->{nfiles} file$pl, " . "$commit->{nins}+ $commit->{ndel}-) " - . "https://gitorious.org/crawl/crawl/commit/$abbr" + . "https://gitorious.org/crawl/crawl/commit/$abbr" ); } else { my $ev = $? >> 8; diff --git a/lib/Crawl/Bot/Plugin/Logging.pm b/lib/Crawl/Bot/Plugin/Logging.pm index 6bc6ecc..0326337 100644 --- a/lib/Crawl/Bot/Plugin/Logging.pm +++ b/lib/Crawl/Bot/Plugin/Logging.pm @@ -89,7 +89,7 @@ sub emoted { my ($args) = @_; if ($args->{channel} eq $self->bot->{channels}[0]) { - $self->log_message("* $args->{who} $args->{body}"); + $self->log_message("* $args->{who} $args->{body}"); } return; } @@ -99,7 +99,7 @@ sub chanjoin { my ($args) = @_; if ($args->{channel} eq $self->bot->{channels}[0]) { - $self->log_message("-!- $args->{who} has joined $args->{channel}"); + $self->log_message("-!- $args->{who} has joined $args->{channel}"); } return; } @@ -109,7 +109,7 @@ sub chanpart { my ($args) = @_; if ($args->{channel} eq $self->bot->{channels}[0]) { - $self->log_message("-!- $args->{who} has left $args->{channel}"); + $self->log_message("-!- $args->{who} has left $args->{channel}"); } return; } @@ -129,7 +129,7 @@ sub kicked { my ($args) = @_; if ($args->{channel} eq $self->bot->{channels}[0]) { - $self->log_message("-!- $args->{kicked} was kicked from $args->{channel} by $args->{who} [$args->{reason}]"); + $self->log_message("-!- $args->{kicked} was kicked from $args->{channel} by $args->{who} [$args->{reason}]"); } return; } diff --git a/lib/Crawl/Bot/Plugin/Monster.pm b/lib/Crawl/Bot/Plugin/Monster.pm index ffa5940..445b16b 100644 --- a/lib/Crawl/Bot/Plugin/Monster.pm +++ b/lib/Crawl/Bot/Plugin/Monster.pm @@ -31,10 +31,9 @@ sub get_monster_info { return "Error: Bad branch $branch\n" unless $branch =~ /^(trunk|stable)$/; CORE::open(F, "-|") || do { - # Collect stderr too - close STDERR; open STDERR, '>&STDOUT'; - exec "bin/monster-$branch", $monster or die "could not execute monster-$branch: $!"; - + # Collect stderr too + close STDERR; open STDERR, '>&STDOUT'; + exec "bin/monster-$branch", $monster or die "could not execute monster-$branch: $!"; }; binmode F, ":utf8"; local $/ = undef; -- cgit v1.2.3