X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2FProcess.pl;h=21c2a69b88def607c7873a32766c52ed7d5a9de8;hb=refs%2Fheads%2Fdpkg;hp=91b3f9d4aad286176a121fe31148420e9eb3f764;hpb=8addf484a5b78fe043ac663129be6c05e075f260;p=infobot.git diff --git a/src/Process.pl b/src/Process.pl index 91b3f9d..21c2a69 100644 --- a/src/Process.pl +++ b/src/Process.pl @@ -26,8 +26,9 @@ sub process { $learnok = 1 if ($addressed); if ( $param{'learn'} =~ /^HUNGRY$/i ) { $learnok = 1; - $addrchar = 1; - $talkok = 1; + #FIXME: why can we talk if we just want to learn? + #$addrchar = 1; + #$talkok = 1; } &shmFlush(); # hack. @@ -274,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; @@ -349,7 +350,8 @@ sub process { # allow administration of bot via messages (default is DCC CHAT only) if ( &IsFlag('A') ) { - &loadMyModule('UserDCC'); + # UserDCC.pl should autoload now from IRC/. Remove if desired + #&loadMyModule('UserDCC'); $er = &userDCC(); if ( !defined $er ) { return 'SOMETHING 2';