From: dms Date: Fri, 8 Nov 2002 16:34:18 +0000 (+0000) Subject: - woops. use && instead of || X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=efa258b118a347a632373cc1cb6712ded8f2f2e0;p=infobot.git - woops. use && instead of || - remove debugging info in two instances. git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@613 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/Modules/News.pl b/blootbot/src/Modules/News.pl index 128bb2c..0e5e843 100644 --- a/blootbot/src/Modules/News.pl +++ b/blootbot/src/Modules/News.pl @@ -786,7 +786,7 @@ sub latest { # scalar @new, !$flag my $unread = scalar @new; my $total = scalar keys %{ $::news{$chan} }; - if (!$flag || &::IsChanConf("newsTellUnread")) { + if (!$flag && &::IsChanConf("newsTellUnread")) { return unless ($unread); # just a temporary measure not to flood ourself off the diff --git a/blootbot/src/core.pl b/blootbot/src/core.pl index 77c8f9c..c3fd018 100644 --- a/blootbot/src/core.pl +++ b/blootbot/src/core.pl @@ -351,7 +351,6 @@ sub findChanConf { foreach (keys %{ $chanconf{$c} }) { next unless (/^$param$/); - &DEBUG("chanconf{$c}{$_} ..."); return $chanconf{$c}{$_}; } } diff --git a/blootbot/src/db_mysql.pl b/blootbot/src/db_mysql.pl index 1c925bd..3343235 100644 --- a/blootbot/src/db_mysql.pl +++ b/blootbot/src/db_mysql.pl @@ -472,7 +472,7 @@ sub searchTable { my $query = "SELECT $select FROM $table WHERE $key LIKE ". &dbQuote($str); my $sth = $dbh->prepare($query); - &DEBUG("query => '$query'."); + &SQLDebug($query); if (!$sth->execute) { &WARN("Search($query)");