]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Modules/UserDCC.pl
broken for +A
[infobot.git] / src / Modules / UserDCC.pl
index 49c10f0fa2073ab5ab490a6ad6aa51f26dd74b34..bd06b8aa25fc84e834615fbe755250e916504b7f 100644 (file)
@@ -365,7 +365,7 @@ sub userDCC {
            return;
        }
 
-       ### TODO: fix up $op to support mysql/sqlite/pgsql/dbm(perl)
+       ### TODO: fix up $op to support mysql/sqlite/pgsql
        ### TODO: => add db/sql specific function to fix this.
        my @list = &searchTable("factoids", "factoid_key",
                        "factoid_value", $op);
@@ -576,14 +576,14 @@ sub userDCC {
                my $str = "";
                foreach (sort keys %{ $chanconf{$chan} }) {
                    my $newstr = join(', ', @items);
-                   if (length $newstr > 60) {
-                       &pSReply("    $str");
+                   if (length $newstr > 63) {
+                       &pSReply(" $str");
                        @items = ();
                    }
                    $str = $newstr;
                    push(@items, "$_ => $chanconf{$chan}{$_}");
                }
-               &pSReply("    $str") if (@items);
+               &pSReply(" $str") if (@items);
            }
            return;
        }
@@ -1369,7 +1369,8 @@ sub userDCC {
     }
 
     # quite a cool hack: reply in DCC CHAT.
-    $msgType = "chat";
+    # FIXME broken for +A
+    #$msgType = "chat";
 
     my $done = 0;
     $done++ if &parseCmdHook("main", $message);