mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-22 10:04:36 +01:00
Using grab
command without arguments now properly displays help text
This commit is contained in:
parent
553eceeb77
commit
58d45480a5
@ -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)";
|
||||
}
|
||||
|
||||
|
@ -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",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user