summaryrefslogtreecommitdiffstats
path: root/lib/Crawl/Bot.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-11-26 17:56:33 -0600
committerJesse Luehrs <doy@tozt.net>2009-11-26 17:56:33 -0600
commitd5c446c70e776601fc83c9b0c2afde74918c0fa9 (patch)
tree99d7976211d7134da2f8a033af14647c48017468 /lib/Crawl/Bot.pm
parent441ec7fe1b0e211a3f747febdffcc996f50c12c3 (diff)
downloadcrawlbot-d5c446c70e776601fc83c9b0c2afde74918c0fa9.tar.gz
crawlbot-d5c446c70e776601fc83c9b0c2afde74918c0fa9.zip
stop showing the email address for users, for now
Diffstat (limited to 'lib/Crawl/Bot.pm')
-rw-r--r--lib/Crawl/Bot.pm9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/Crawl/Bot.pm b/lib/Crawl/Bot.pm
index 0ca557d..0af614c 100644
--- a/lib/Crawl/Bot.pm
+++ b/lib/Crawl/Bot.pm
@@ -104,13 +104,12 @@ sub tick {
(my $id = $link) =~ s/.*=(\d+)$/$1/;
return if $self->has_issue($id);
warn "New issue! ($id)";
- my $message = $issue->title;
- $message =~ s/\d+: //;
- $message = sprintf '%s (%s) by %s',
- $message, $issue->link, $issue->creator;
+ (my $title = $issue->title) =~ s/\d+: //;
+ my $link = $issue->link;
+ (my $user = $issue->creator) =~ s/ <.*?>$//;
$self->say(
channel => $_,
- body => $message,
+ body => "$title ($link) by $user",
) for $self->channels;
$self->add_issue($id);
});