Now I see the problem - sorry, it's been my own typo.
if ($me !ison $acitve)
has to be:
if ($me !ison $active)

In addition, the line "elseif ($1 !ison $chan)" should be "elseif ($1 !ison $active)" (just for conformity)
Note: The alias was only for kickbanning on the editbox's channel, not for providing a channel parameter.