$chan(<chan>).mode shows the modes as well as the key (when +k is set), only $chan(<chan>).key should show it.