From 6e0263bcd8a478e3bd395b961b278cec6336f6a9 Mon Sep 17 00:00:00 2001 From: Matthew Barksdale Date: Sat, 19 Feb 2011 03:39:53 -0500 Subject: [PATCH] Fixed an issue with cjoin --- lib/Parser/IRC.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Parser/IRC.pm b/lib/Parser/IRC.pm index 57ab722..192247d 100644 --- a/lib/Parser/IRC.pm +++ b/lib/Parser/IRC.pm @@ -303,7 +303,7 @@ sub cjoin # Check if this is coming from ourselves. if ($src{nick} eq $botnick{$svr}{nick}) { - $botchans{$svr}{lc(substr $ex[2], 1)} = 1; + $botchans{$svr}{lc $chan} = 1; API::Std::event_run("on_ucjoin", ($svr, $chan)); } else {