backported improved alarm_xmpp plugin