From 701573583662445399530481c81594fc19ce24ba Mon Sep 17 00:00:00 2001 From: dms Date: Fri, 8 Nov 2002 16:34:18 +0000 Subject: [PATCH] - woops. use && instead of || - remove debugging info in two instances. git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@613 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/Modules/News.pl | 2 +- src/core.pl | 1 - src/db_mysql.pl | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Modules/News.pl b/src/Modules/News.pl index 128bb2c..0e5e843 100644 --- a/src/Modules/News.pl +++ b/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/src/core.pl b/src/core.pl index 77c8f9c..c3fd018 100644 --- a/src/core.pl +++ b/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/src/db_mysql.pl b/src/db_mysql.pl index 1c925bd..3343235 100644 --- a/src/db_mysql.pl +++ b/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)"); -- 2.39.2