From 31ae068202523b4704bc5526ae46bcb405ac2fa4 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Thu, 27 Jan 2011 01:51:16 +0000 Subject: [PATCH] factoid commands: removed unnecessary direct privmsg call --- PBot/FactoidCommands.pm | 6 ++++-- PBot/VERSION.pm | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/PBot/FactoidCommands.pm b/PBot/FactoidCommands.pm index a1f69bd7..4bd085c9 100644 --- a/PBot/FactoidCommands.pm +++ b/PBot/FactoidCommands.pm @@ -225,12 +225,14 @@ sub list { return "Error in search parameters: $@"; } + my $text = ""; my @sorted = sort { $a->{timestamp} <=> $b->{timestamp} } @results; foreach my $msg (@sorted) { $self->{pbot}->logger->log("[$msg->{channel}] " . localtime($msg->{timestamp}) . " [o: $msg->{offenses}, j: $msg->{join_watch}] <$msg->{nick}> " . $msg->{text} . "\n"); - $self->{pbot}->conn->privmsg($nick, "[$msg->{channel}] " . localtime($msg->{timestamp}) . " <$msg->{nick}> " . $msg->{text} . "\n") unless $nick =~ /\Q$botnick\E/i; + $text .= "[$msg->{channel}] " . localtime($msg->{timestamp}) . " <$msg->{nick}> " . $msg->{text} . "\n"; } - return ""; + + return "Messages: $text"; } if($arguments =~ /^modules$/i) { diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index 2a0f8770..4e622515 100644 --- a/PBot/VERSION.pm +++ b/PBot/VERSION.pm @@ -13,7 +13,7 @@ use warnings; # These are set automatically by the build/commit script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 272, + BUILD_REVISION => 273, BUILD_DATE => "2011-01-26", };