when you join a channel the server sends you the JOIN raw. i wanted to re-act on this event with

raw JOIN:*:echo -s $1-

but the thing doesn't even trigger (i see the event coming up in the /debug window). so what can i do? ON JOIN doesn't seem to be the right thing.

what i want to do in the end is the following. irc-ops can force you to join channels just by sending you this event. i don't want that to happen. so i want to halt, when not the user himself requested the join.

thanks for any help on this.