From 6536516a288a842afe7657c2c9f4d98b3c698f39 Mon Sep 17 00:00:00 2001 From: Stan Lemon Date: Wed, 4 Feb 2015 10:44:50 -0500 Subject: [PATCH] Allow explicitly setting the mucHost --- lib/bot.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) {