diff --git a/PBot/FactoidCommands.pm b/PBot/FactoidCommands.pm index 28a277ed..0c0db09c 100644 --- a/PBot/FactoidCommands.pm +++ b/PBot/FactoidCommands.pm @@ -204,7 +204,7 @@ sub list { if($arguments =~/^messages\s+(.*)$/) { my ($mask_search, $channel_search, $text_search) = split / /, $1; - return "/msg $nick Usage: !list messages [text regex]" if not defined $channel_search; + return "/msg $nick Usage: list messages [text regex]" if not defined $channel_search; $text_search = '.*' if not defined $text_search; my @results = eval { @@ -375,7 +375,7 @@ sub add_regex { sub factadd { my $self = shift; my ($from, $nick, $user, $host, $arguments) = @_; - my ($from_chan, $keyword, $text) = $arguments =~ /^(.*?)\s+(.*?)\s+is\s+(.*)$/i if defined $arguments; + my ($from_chan, $keyword, $text) = $arguments =~ /^(\S+)\s+(\S+)\s+is\s+(.*)$/i if defined $arguments; if(not defined $from_chan or not defined $text or not defined $keyword) { return "/msg $nick Usage: factadd is "; diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index 907239f3..11d971f1 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 => 546, + BUILD_REVISION => 547, BUILD_DATE => "2014-04-19", };