try this (not tested):
Code:
 on *join:#:{ set %nomode y }
on ^1:rawmode:#:{ if (%nomode) { haltdef | unset %nomode } }