Personally, I don't like using raw commands when not necessary.
You might try this
on me:*:join:#:{
if myhouse isin $chan {
away $chan
}
}
I don't understand why you're putting the channel name into the away message, unless that isn't what you intended.
If that's not what you intended, the I might be of more help if you tell me what your intentions were/are.
A couple of side notes:
1) When posting code, please use the Code Tags button, which looks like #
2) As this is a script, and you were aware that it was a script before you posted, then you should've posted in the Scripts & Pop-ups section.