]> git.donarmstrong.com Git - infobot.git/commitdiff
ban fixes.
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 13 Feb 2001 14:07:07 +0000 (14:07 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 13 Feb 2001 14:07:07 +0000 (14:07 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@387 c11ca15a-4712-0410-83d8-924469b57eb5

src/IRC/Irc.pl

index 79fba40f6b1a3609e7c8077b8600a83b4d038912..e8e341e6c68d683e92887c1e79c78a2a66fffd66 100644 (file)
@@ -315,7 +315,7 @@ sub performStrictReply {
     } elsif ($msgType eq 'public') {
        &say($reply);
     } elsif ($msgType eq 'chat') {
-       &dccsay($who,$reply);
+       &dccsay(lc $who,$reply);
     } else {
        &ERROR("pSR: msgType invalid? ($msgType).");
     }
@@ -446,19 +446,13 @@ sub ban {
     my (@chans) = ($chan eq "") ? (keys %channels) : lc($chan);
     my $ban    = 0;
 
+    &DEBUG("ban: mask = $mask, chan = $chan");
     if ($chan ne "" and &validChan($chan) == 0) {
        &ERROR("ban: invalid channel $chan.");
        return;
     }
 
-    $nick =~ tr/A-Z/a-z/;
-
     foreach $chan (@chans) {
-       if (!&IsNickInChan($nick,$chan) and scalar @chans == 1) {
-           &status("Ban: $nick is not on $chan.");
-           next;
-       }
-
        if (!exists $channels{$chan}{o}{$ident}) {
            &status("Ban: do not have ops on $chan :(");
            next;