Skip to content
This repository has been archived by the owner on Nov 14, 2017. It is now read-only.

Allow explicitly setting the mucHost #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/bot.js
Expand Up @@ -191,7 +191,11 @@ module.exports.Bot = (function() {

// Multi-User-Conference (rooms) service host. Use when directing stanzas
// to the MUC service.
this.mucHost = this.host ? "conf." + this.host : "conf.hipchat.com";
if (options.mucHost) {
this.mucHost = options.mucHost;
} else {
this.mucHost = this.host ? "conf." + this.host : "conf.hipchat.com";
}

var self = this;
this.on('error', function(error) {
Expand Down