]> iEval git - poe-component-irc-plugin-infobot.git/blobdiff - lib/POE/Component/IRC/Plugin/Infobot.pm
Respond to !forget, even if unaddressed
[poe-component-irc-plugin-infobot.git] / lib / POE / Component / IRC / Plugin / Infobot.pm
index 5277c351003e968c92c666f3cba834b23dbfd4b6..c2969b63b321d00dda1ddc6235f2bae2f444390a 100644 (file)
@@ -4,7 +4,7 @@ use 5.014000;
 use strict;
 use warnings;
 
-our $VERSION = 0.001001;
+our $VERSION = '0.001002';
 
 use DB_File;
 
@@ -86,8 +86,8 @@ sub runcmd{
                infobot_add $self, $irc, $1, $2, $to, $nick if $addressed
        } elsif (/^(.+)\?$/) {
                infobot_query $self, $irc, $1, $to, $nick, $addressed
-       } elsif (/^forget\s+(.*)$/) {
-               infobot_forget $self, $irc, $1, $to, $nick if $addressed
+       } elsif ($addressed && /^!?forget\s+(.*)$/ || /^!forget\s+(.*)$/) {
+               infobot_forget $self, $irc, $1, $to, $nick
        }
 }
 
This page took 0.025542 seconds and 4 git commands to generate.