]> git.donarmstrong.com Git - infobot.git/commitdiff
- ".op" fixed. found by Rev
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 17 Feb 2001 13:41:15 +0000 (13:41 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 17 Feb 2001 13:41:15 +0000 (13:41 +0000)
- ".-ban" now removes the ban from the chan.

git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@401 c11ca15a-4712-0410-83d8-924469b57eb5

src/Modules/UserDCC.pl

index 71a9c585fcb53d803bb436cc5c04934236a2a073..e90ddac29275a95b0bca7f4aff95c646d4e46f1a 100644 (file)
@@ -228,21 +228,20 @@ sub userDCC {
            next unless (&IsNickInChan($opee,$_));
            $found++;
            if ($channels{$_}{'o'}{$opee}) {
-               &status("op: $opee already has ops on $_");
+               &pSReply("op: $opee already has ops on $_");
                next;
            }
            $op++;
 
-           &status("opping $opee on $_ at ${who}'s request");
            &pSReply("opping $opee on $_");
            &op($_, $opee);
        }
 
        if ($found != $op) {
-           &status("op: opped on all possible channels.");
+           &pSReply("op: opped on all possible channels.");
        } else {
-           &DEBUG("found => '$found'.");
-           &DEBUG("op => '$op'.");
+           &DEBUG("op: found => '$found'.");
+           &DEBUG("op:    op => '$op'.");
        }
 
        return;
@@ -934,10 +933,14 @@ sub userDCC {
        }
 
        if ($state == 0) {              # delete.
-           my $c = join(' ', &banDel($mask) );
+           my @c = &banDel($mask);
+
+           foreach (@c) {
+               &unban($mask, $_);
+           }
 
            if ($c) {
-               &pSReply("Removed $mask from chans: $c");
+               &pSReply("Removed $mask from chans: @c");
            } else {
                &pSReply("$mask was not found in ban list.");
            }