X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FPOE%2FComponent%2FIRC%2FPlugin%2FHello.pm;h=20b341a6217cacc2357a2410a96577d4f89892de;hb=7dc26b474274f442d4087651910a1a6e8f0f0805;hp=a5770aa0350d03020f2ef22cc2871cde4ae3be60;hpb=9e1acbcb35f4ab7384e05ad9dd5fefab54739f76;p=poe-component-irc-plugin-hello.git diff --git a/lib/POE/Component/IRC/Plugin/Hello.pm b/lib/POE/Component/IRC/Plugin/Hello.pm index a5770aa..20b341a 100644 --- a/lib/POE/Component/IRC/Plugin/Hello.pm +++ b/lib/POE/Component/IRC/Plugin/Hello.pm @@ -3,7 +3,7 @@ package POE::Component::IRC::Plugin::Hello; use 5.014000; use strict; use warnings; -our $VERSION = '0.001001'; +our $VERSION = '0.001002'; use List::Util qw/first/; @@ -34,7 +34,7 @@ sub S_public{ my $mynick = $irc->nick_name; my @hello = @{$self->{greetings}}; - my $match = first { $$rmessage =~ /^\s*(?:$mynick(?:)[:,])?\s*$_\s*$/i } @hello; + my $match = first { $$rmessage =~ /^\s*(?:$mynick(?:)[:,])?\s*$_\s*[.!]?\s*$/i } @hello; $irc->yield(privmsg => $$rchannels->[0] => $hello[int rand $#hello].", $nick") if $match; PCI_EAT_NONE }