From: dms Date: Thu, 21 Jun 2001 13:42:27 +0000 (+0000) Subject: - attempt to fix .reset (chans) prob X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=90429d414d7f407a08bf2b4d192efabf727fd361;p=infobot.git - attempt to fix .reset (chans) prob git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@511 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/Modules/UserDCC.pl b/blootbot/src/Modules/UserDCC.pl index acc4a17..195fdf8 100644 --- a/blootbot/src/Modules/UserDCC.pl +++ b/blootbot/src/Modules/UserDCC.pl @@ -444,15 +444,20 @@ sub userDCC { &msg($who,"resetting..."); my @done; foreach ( keys %channels, keys %chanconf ) { + &DEBUG("reset: c => $c"); next if (grep /^\Q$_\E$/i, @done); + &DEBUG("reset: should part... c => $c"); &part($_); push(@done, $_); sleep 1; } + &DEBUG("before clearircvars"); &clearIRCVars(); + &DEBUG("before joinnextchan"); &joinNextChan(); + &DEBUG("after joinnextchan"); &status("USER reset $who"); &msg($who,"resetted");