This if will not do what you expect:
if (# isin $1-) {
This if will match when somebody mentions YOUR room, not A room with the # character. You should use:
if (# !isin $1-) && ($chr(35) isin $1-) {
Furthermore, I like simple scripting too, but it is lame if you don\'t even use \"elseif\".