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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/bot.js
Original file line number Diff line number Diff line change
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