]> iEval git - app-statsbot.git/blobdiff - lib/App/Statsbot.pm
Bump version and update Changes
[app-statsbot.git] / lib / App / Statsbot.pm
index fcc79594eefc2656742758b52de94af9b3957aa3..701c6c56e6bbf0beab018c2f309927440c323135 100644 (file)
@@ -4,7 +4,7 @@ use 5.014000;
 use strict;
 use warnings;
 
-our $VERSION = '0.001002';
+our $VERSION = '1.000';
 
 use POE;
 use POE::Component::IRC::State;
@@ -138,14 +138,14 @@ sub on_public{
        my ($targets,$message)=@_[ARG1,ARG2];
        my $botnick = _nick_name;
 
-       if ($message =~ /(?:$botnick[:,])?\s*!?help\s*(.*)/sx) {
+       if ($message =~ /^(?:$botnick[:,]\s*!?|\s*!)help/sx) {
                _yield(privmsg => $targets, 'Try !presence username interval [truncate]');
                _yield(privmsg => $targets, q/For example, !presence mgv '2 days'/);
                _yield(privmsg => $targets, q/or !presence mgv '1 year' 4/);
                return;
        }
 
-       return unless $message =~ /(?:$botnick[:,])?\s*!?presence\s*(.*)/sx;
+       return unless $message =~ /^(?:$botnick[:,])?\s*!?presence\s*(.*)/sx;
        my ($nick, $time, $truncate) = shellwords $1;
 
        $truncate//=-1;
@@ -265,7 +265,7 @@ Marius Gavrilescu, E<lt>marius@ieval.roE<gt>
 
 =head1 COPYRIGHT AND LICENSE
 
-Copyright (C) 2013-2015 by Marius Gavrilescu
+Copyright (C) 2013-2016 by Marius Gavrilescu
 
 This library is free software; you can redistribute it and/or modify
 it under the same terms as Perl itself, either Perl version 5.20.2 or,
This page took 0.020668 seconds and 4 git commands to generate.