markstory/hubot-xmpp — pull request #18 by joeandaverde (2012-09-05 06:13:28+00:00)
Title: Provide a means to join and leave rooms

It would be useful if hubot had the ability to join and leave rooms. I've exposed joinRoom and leaveRoom on the adapter to be used like this:

```coffeescript
robot.adapter.joinRoom jid: "room@location.com"
```
and

```coffeescript
robot.adapter.leaveRoom jid: "room@location.com"
```
This can come in handy if you want to temporarily make hubot leave a room and join another or join rooms when asked to do so.

Additionally, this pull request includes tests for joining and leaving rooms.