]> git.donarmstrong.com Git - infobot.git/commitdiff
* Fixed talkok bug with 'how are you' statement in optional addressing mode
authordjmcgrath <djmcgrath@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 2 Jul 2008 20:25:31 +0000 (20:25 +0000)
committerdjmcgrath <djmcgrath@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 2 Jul 2008 20:25:31 +0000 (20:25 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1837 c11ca15a-4712-0410-83d8-924469b57eb5

ChangeLog
src/Process.pl

index bca38079c9b33b9af3dd60c606fdcdb67fddcf70..5de68e3493d9f9eb2dc6ddfa545f4fcf8dfd921a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -17,6 +17,8 @@ was causing the output to go to random channels due to loss of variable scope
 
 * Added infobot client to verstats and cleaned up a few other client regex
 
+* Fixed talkok bug with 'how are you' statement
+
 1.5.2
 =====
 
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;