From: djmcgrath Date: Wed, 2 Jul 2008 20:25:31 +0000 (+0000) Subject: * Fixed talkok bug with 'how are you' statement in optional addressing mode X-Git-Url: https://git.donarmstrong.com/?p=infobot.git;a=commitdiff_plain;h=b07f5d3af82918665a2e9425b85a13b63c737aa5 * Fixed talkok bug with 'how are you' statement in optional addressing mode git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1837 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/ChangeLog b/ChangeLog index bca3807..5de68e3 100644 --- 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 ===== diff --git a/src/Process.pl b/src/Process.pl index 63cae56..21c2a69 100644 --- a/src/Process.pl +++ b/src/Process.pl @@ -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;