_Dean_ commented on a Page, Simple Notice Join/Part  -  Aug 10, 2011

the fact is, it will not strip ctrl commands... since, the person use
!join #roomname with colors
all it will return is
"Illegal channel name"

a simple solution would be

on $*:text:/^!join\s(\43\S+)$/iS:#: .join $regml(1)

if you want, you can improve regex to not accept special characters on match

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.