# File lib/god/contacts/jabber.rb, line 47
      def notify(message, time, priority, category, host)
        body = Jabber.format.call(message, time, priority, category, host)

        message = ::Jabber::Message.new(arg(:to_jid), body)
        message.set_type(:normal)
        message.set_id('1')
        message.set_subject(arg(:subject))

        jabber_id = ::Jabber::JID.new("#{arg(:from_jid)}/God")

        client = ::Jabber::Client.new(jabber_id)
        client.connect(arg(:host), arg(:port))
        client.auth(arg(:password))
        client.send(message)
        client.close

        self.info = "sent jabber message to #{self.to_jid}"
      rescue Object => e
        if e.respond_to?(:message)
          applog(nil, :info, "failed to send jabber message to #{arg(:to_jid)}: #{e.message}")
        else
          applog(nil, :info, "failed to send jabber message to #{arg(:to_jid)}: #{e.class}")
        end
        applog(nil, :debug, e.backtrace.join("\n"))
      end