diff --git a/lib/Proto/IRC.pm b/lib/Proto/IRC.pm index 8e7f01d..784aaa9 100644 --- a/lib/Proto/IRC.pm +++ b/lib/Proto/IRC.pm @@ -359,7 +359,7 @@ sub cjoin { } else { # It isn't. Update chanusers and trigger on_rcjoin. - $State::IRC::chanusers{$svr}{lc $chan}{$src{nick}} = 1; + $State::IRC::chanusers{$svr}{$chan}{lc $src{nick}} = 1; $src{svr} = $svr; API::Std::event_run("on_rcjoin", (\%src, $chan)); }