3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-04 18:38:47 +02:00

Improve author(s) column in quotegrab html export

This commit is contained in:
Pragmatic Software 2013-10-12 11:00:29 +00:00
parent 3d233dcdfe
commit fd12d228d8
2 changed files with 5 additions and 3 deletions

View File

@ -109,6 +109,8 @@ sub save_quotegrabs {
$self->export_quotegrabs();
}
sub uniq { my %seen; grep !$seen{$_}++, @_ }
sub export_quotegrabs() {
my $self = shift;
return "Not enabled" if not defined $self->{export_path};
@ -151,7 +153,7 @@ sub export_quotegrabs() {
print FILE "<td>" . ($quotegrab->{id}) . "</td>";
my @nicks = split /\+/, $quotegrab->{nick};
$text = join ', ', sort @nicks;
$text = join ', ', uniq(@nicks);
print FILE "<td>" . encode_entities($text) . "</td>";
my $nick;

View File

@ -13,8 +13,8 @@ use warnings;
# These are set automatically by the build/commit script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 441,
BUILD_DATE => "2013-10-11",
BUILD_REVISION => 442,
BUILD_DATE => "2013-10-12",
};
1;