2)As this is a channel-based event, you can drop the '$chan' in the if tests, i.e. 'if ($me isop)'.
it could have been working, on @*:ban:, then i could remove that line, but since i also use if ($me !isop $chan) { do stuff } it dosent work that well in my code
