check server type

hardcoding :'(
needs to loop, seperate config, or section?
This commit is contained in:
Stephen Vanderwarker 2022-05-26 19:37:42 -04:00
parent 805535cfc3
commit 6ad84aeef4
Signed by: stephen
GPG Key ID: EF429EF847868C14

View File

@ -449,6 +449,7 @@ try {
if (from != user_jid) {
xmpp.send(from, pc);
} else {
if (xmpp_server_type === "ejabberd"){
// Create private XMPP room
const createRoom = {
method: 'POST',
@ -461,7 +462,6 @@ try {
name: xmpp_muc_name,
service: xmpp_muc_server,
host: bot_hostname,
// options: xmpp_server_type;
options: {
allow_change_subj: 'false',
allow_private_messages: 'false',
@ -536,7 +536,7 @@ try {
}, 2000);
debug();
xmpp.send(from, "Alright. Starting a new meeting: " + xmpp_muc_name + "@" + xmpp_muc_server + " and inviting friends");
}
}}
}
// End meeting