diff --git a/lib/bot.js b/lib/bot.js index 657fe83..b955826 100644 --- a/lib/bot.js +++ b/lib/bot.js @@ -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) {