3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-06 11:28:43 +02:00

Using grab command without arguments now properly displays help text

This commit is contained in:
Pragmatic Software 2013-07-24 12:34:13 +00:00
parent 553eceeb77
commit 58d45480a5
2 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ sub grab_quotegrab {
return "";
}
if(not defined $arguments) {
if(not defined $arguments or not length $arguments) {
return "Usage: grab <nick> [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)";
}

View File

@ -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",
};