The script relies on the IAL (/help Internal Address List) containing the address of the user you specify with !allow and !remove. You can quickly fill the IAL for a channel with /who [color:green]#channel[/color].

The following code will automatically /who a channel when you join it:
Code:
on me:*:JOIN:#:who #