--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Add a callback for &lt;presence/&gt; stanzas indicating unavailability of a MUC participant
- !ruby/struct:SM::Flow::P 
  body: "The callback will be called with one argument: the &lt;presence/&gt; stanza."
- !ruby/struct:SM::Flow::P 
  body: Note that this is called just <b>before</b> the stanza is removed from MUCClient#roster, so it is still possible to see the last presence in the given block.
- !ruby/struct:SM::Flow::P 
  body: If the presence's origin is your MUC JID, the MUCClient will be deactivated <b>afterwards</b>.
full_name: Jabber::MUC::MUCClient#add_leave_callback
is_singleton: false
name: add_leave_callback
params: (prio = 0, ref = nil, &block)
visibility: public
