From 4c4bdd9188db3b850f35777ba97bcb6fac092dde Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Mon, 10 Feb 2014 18:07:34 +0000 Subject: [PATCH] Show nick before channel in `rq` command when no quotes found --- PBot/Quotegrabs.pm | 10 +++++----- PBot/VERSION.pm | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/PBot/Quotegrabs.pm b/PBot/Quotegrabs.pm index 0f8729b3..7a4f11da 100644 --- a/PBot/Quotegrabs.pm +++ b/PBot/Quotegrabs.pm @@ -450,14 +450,14 @@ sub show_random_quotegrab { if($#quotes < 0) { my $result = "No quotes grabbed "; - if($channel_search ne '.*') { - $result .= "in $channel_search "; - } - if($nick_search ne '.*') { $result .= "for $nick_search "; } - + + if($channel_search ne '.*') { + $result .= "in $channel_search "; + } + if($text_search ne '.*') { $result .= "matching '$text_search' "; } diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index f3e507e4..82d3f34b 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 => 480, + BUILD_REVISION => 481, BUILD_DATE => "2014-02-10", };