Your problem is in your second IF condition:
- if (%away.silent==on) { quietaway autoaway after $duration(%away.aatime) }
unless you happen to have a variable named
%away.silent==on, which is a valid variable name. Surround the == with spaces as you did the > in the previous IF condition.
- if (%away.silent == on) { quietaway autoaway after $duration(%away.aatime) }