From 4f3244a3d42ba3b8898a93537ba63e245c1c2a04 Mon Sep 17 00:00:00 2001 From: Elijah Perrault Date: Tue, 8 Feb 2011 20:15:01 -0700 Subject: [PATCH] Delete channel from botchans on part. --- src/API/IRC.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/API/IRC.pm b/src/API/IRC.pm index 50d0e33..f3a4e90 100644 --- a/src/API/IRC.pm +++ b/src/API/IRC.pm @@ -34,6 +34,8 @@ sub cpart else { Auto::socksnd($svr, "PART $chan :Leaving"); } + + if (defined $Parser::IRC::botchans{$svr}{$chan}) { delete $Parser::IRC::botchans{$svr}{$chan}; } return 1; }