Maybe:
Better do ex: #channel
Ex: on *:text:#channel:{ (etc)
Sorry i just give 1 example. /me feel lazy to rewrite it. :)