# $Id: bob.tcl 1712 2009-03-12 17:06:25Z sergei $

package require xmpp::bob

namespace eval bob {
    hook::add process_message_hook [namespace current]::find_bob_in_message 1
    hook::add client_presence_hook [namespace current]::find_bob_in_presence 1
}

proc bob::find_bob_in_message {xlib from id type is_subject
			       subject body err thread priority x} {
    ::xmpp::bob::cache $x
}

proc bob::find_bob_in_presence {xlib from type x args} {
    ::xmpp::bob::cache $x
}

