]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Modules/Topic.pl
removed/convert debug messages
[infobot.git] / src / Modules / Topic.pl
index 093bdf533ef763a6779e4514f5aa0cfb17500108..84eca7bac19b20f010c1a7736b3500a269ea7d08 100644 (file)
@@ -20,7 +20,6 @@ sub topicDecipher {
   my @results;
 
   if (!exists $topic{$chan}{'Current'}) {
-    &DEBUG("Topic: does not exist for $chan.");
     return;
   }
 
@@ -42,7 +41,7 @@ sub topicDecipher {
     }
 
     if (grep /^\Q$subtopic\E\|\|\Q$owner\E$/, @results) {
-       &DEBUG("topic: we have found a dupe in the topic, not adding.");
+       &status("Topic: we have found a dupe in the topic, not adding.");
        next;
     }
 
@@ -79,11 +78,6 @@ sub topicNew {
   my ($chan, $topic, $updateMsg, $topicUpdate) = @_;
   my $maxlen = 470;
 
-  &DEBUG("topic: chan{$chan} is +t.") if ($channels{$chan}{t});
-  &DEBUG("topic: chan{$chan} is -t.") unless ($channels{$chan}{t});
-  &DEBUG("topic: I have +o.") if ($channels{$chan}{o}{$ident});
-  &DEBUG("topic: I don't have +o.") unless ($channels{$chan}{o}{$ident});
-
   if ($channels{$chan}{t} and !$channels{$chan}{o}{$ident}) {
     &msg($who, "error: cannot change topic without ops. (channel is +t) :(");
     return 0;