]> git.donarmstrong.com Git - infobot.git/commitdiff
- woops. use && instead of ||
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 8 Nov 2002 16:34:18 +0000 (16:34 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 8 Nov 2002 16:34:18 +0000 (16:34 +0000)
- remove debugging info in two instances.

git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@613 c11ca15a-4712-0410-83d8-924469b57eb5

blootbot/src/Modules/News.pl
blootbot/src/core.pl
blootbot/src/db_mysql.pl

index 128bb2c821c85d9034bdd5b52582dbcc53cbd687..0e5e8432d10d06340af278d73eaa4c122eaf39d9 100644 (file)
@@ -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 
index 77c8f9c4fc3767d981a0d99290c6f14e5ae75532..c3fd01822e9dc048bcf47c630e3d6976ccda3996 100644 (file)
@@ -351,7 +351,6 @@ sub findChanConf {
        foreach (keys %{ $chanconf{$c} }) {
            next unless (/^$param$/);
 
-           &DEBUG("chanconf{$c}{$_} ...");
            return $chanconf{$c}{$_};
        }
     }
index 1c925bdbdffb97c31d0ed5f8b5f80c6ad1567e43..334323519f56d106e6f86d17f72f78553a9b4cc0 100644 (file)
@@ -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)");