sprsquish/blather — Issue #81: MUC presence stanzas being incorrectly detected as invitations
Author: bklang
Created: 2012-02-27 05:25:44+00:00
State: open

Using the following handler code:

```ruby
muc_user :invite? do |muc_user|
logger.info "Received an invite to #{muc_user.from} from #{muc_user.invite.from} with reason #{muc_user.invite.reason}."
j = Blather::Stanza::Presence::MUC.new
j.to = [muc_user.from, 'mynickname'].join '/'
client.write j
end
```

...results in a presence loop where the Blather process continually rejoins the conference room. The nickname becomes "othernick/mynickname", where "othernick" is the name of someone already in the room.