The link I gave you before already includes most of the features that you want. I think the only think it doesn't have is when your nick was said in the channel when you're away.

If that case, you can add this:

Code:
On *:TEXT:$($+(*,$me,*)):#: if ( $away ) msg $chan I'm currently away. Reason: $awaymsg $+ .


Try that.