From d9e4406da2381c57e095f069ec6b3e36f6be583b Mon Sep 17 00:00:00 2001 From: dms Date: Sat, 17 Feb 2001 13:41:15 +0000 Subject: [PATCH] - ".op" fixed. found by Rev - ".-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 | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/Modules/UserDCC.pl b/src/Modules/UserDCC.pl index 71a9c58..e90ddac 100644 --- a/src/Modules/UserDCC.pl +++ b/src/Modules/UserDCC.pl @@ -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."); } -- 2.39.2