]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Process.pl
* Fixed talkok bug with 'how are you' statement in optional addressing mode
[infobot.git] / src / Process.pl
index 63cae569ef872d2fab930f6889af8e462a34db22..21c2a69b88def607c7873a32766c52ed7d5a9de8 100644 (file)
@@ -275,7 +275,7 @@ sub process {
     }
 
     # greetings.
-    if ( $message =~ /how (the hell )?are (ya|you)( doin\'?g?)?\?*$/ ) {
+    if ( $message =~ /how (the hell )?are (ya|you)( doin\'?g?)?\?*$/ && $talkok ) {
 
         &performReply( &getRandom( keys %{ $lang{'howareyou'} } ) );
         return;