diff --git a/PBot/Quotegrabs.pm b/PBot/Quotegrabs.pm index bcc350cc..4b743099 100644 --- a/PBot/Quotegrabs.pm +++ b/PBot/Quotegrabs.pm @@ -160,7 +160,7 @@ sub grab_quotegrab { return ""; } - if(not defined $arguments) { + if(not defined $arguments or not length $arguments) { return "Usage: grab [history [channel]] -- where [history] is an optional argument that is either an integer number of recent messages or a regex (without whitespace) of the text within the message; e.g., to grab the 3rd most recent message for nick, use `grab nick 3` or to grab a message containing 'pizza', use `grab nick pizza`; and [channel] is an optional channel, so you can use it from /msg (you will need to also specify [history] in this case)"; } diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index 204f0a2b..49f11f17 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 => 410, + BUILD_REVISION => 411, BUILD_DATE => "2013-07-24", };