From: dms Date: Thu, 1 Feb 2001 14:18:55 +0000 (+0000) Subject: - wrong order in .+ignore X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=eecfa30c69ae229930296d9adc77fed742345e5c;p=infobot.git - wrong order in .+ignore - ".chanset #chan" fixup. git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@296 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/Modules/UserDCC.pl b/blootbot/src/Modules/UserDCC.pl index d6df2fd..6d19ac1 100644 --- a/blootbot/src/Modules/UserDCC.pl +++ b/blootbot/src/Modules/UserDCC.pl @@ -414,9 +414,9 @@ sub userDCC { return unless (&hasFlag("n")); &status("USER reload $who"); - &msg($who,"reloading..."); + &pSReply("reloading..."); &reloadAllModules(); - &msg($who,"reloaded."); + &pSReply("reloaded."); return; } @@ -536,8 +536,12 @@ sub userDCC { if ($cmd eq "chanset" and !defined $what) { &DEBUG("showing channel conf."); - foreach (keys %{ $chanconf{$chan} }) { - &DEBUG("$chan: $_ => $chanconf{$chan}{$_}"); + foreach $chan ($chan, "_default") { + &pSReply("chan: $chan"); + ### TODO: merge 2 or 3 per line. + foreach (sort keys %{ $chanconf{$chan} }) { + &pSReply(" $_ => $chanconf{$chan}{$_}"); + } } return; @@ -1084,7 +1088,6 @@ sub userDCC { # chan. if ($args =~ s/^($mask{chan}|\*)\s*//) { $chan = $1; - &DEBUG("chan => $chan"); } else { $chan = "*"; } @@ -1092,7 +1095,6 @@ sub userDCC { # time. if ($args =~ s/^(\d+)\s*//) { $time = $1*60; # ?? - &DEBUG("time => $time"); } else { $time = 0; } @@ -1100,15 +1102,14 @@ sub userDCC { # time. if ($args) { $comment = $args; - &DEBUG("comment => $comment"); } else { $comment = "added by $who"; } if ( &ignoreAdd($mask, $chan, $time, $comment) > 1) { - &pSReply("added $mask to ignore list."); - } else { &pSReply("warn: $mask already in ignore list; written over anyway. FIXME"); + } else { + &pSReply("added $mask to ignore list."); } return;