]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Modules/Topic.pl
- updates to DEBUG/WARN/ERROR or the result of looking at them
[infobot.git] / src / Modules / Topic.pl
index 60e5c3b0f3594145a5423a24811d14ec17e829f8..c0d9d95c879abd62284936ae3aa6781389dd857a 100644 (file)
@@ -55,7 +55,7 @@ sub topicDecipher {
 # Usage: &topicCipher(@topics);
 sub topicCipher {
   if (!@_) {
-    &DEBUG("topicCipher: topic is NULL.");
+    &WARN("topicCipher: topic is NULL for $chan.");
     return;
   }
 
@@ -390,7 +390,7 @@ sub Topic {
 
        undef @subtopics;                       # lets reuse this array.
        foreach (@newtopics) {
-         next if ($_ eq "");
+         next if (!defined $_ or $_ eq "");
          push(@subtopics, $_);
        }