the code in the beginning won't do anything because its not in an event. adding a load event fixes this
on *:load: { set %auto.away.network set %auto.away.duration set %auto.away.chan(s) set %auto.away.msg set %away.network set %away.chan(s) }