forked from vxmppb/vxmppb
check server type
hardcoding :'( needs to loop, seperate config, or section?
This commit is contained in:
parent
805535cfc3
commit
6ad84aeef4
4
index.js
4
index.js
|
@ -449,6 +449,7 @@ try {
|
||||||
if (from != user_jid) {
|
if (from != user_jid) {
|
||||||
xmpp.send(from, pc);
|
xmpp.send(from, pc);
|
||||||
} else {
|
} else {
|
||||||
|
if (xmpp_server_type === "ejabberd"){
|
||||||
// Create private XMPP room
|
// Create private XMPP room
|
||||||
const createRoom = {
|
const createRoom = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
@ -461,7 +462,6 @@ try {
|
||||||
name: xmpp_muc_name,
|
name: xmpp_muc_name,
|
||||||
service: xmpp_muc_server,
|
service: xmpp_muc_server,
|
||||||
host: bot_hostname,
|
host: bot_hostname,
|
||||||
// options: xmpp_server_type;
|
|
||||||
options: {
|
options: {
|
||||||
allow_change_subj: 'false',
|
allow_change_subj: 'false',
|
||||||
allow_private_messages: 'false',
|
allow_private_messages: 'false',
|
||||||
|
@ -536,7 +536,7 @@ try {
|
||||||
}, 2000);
|
}, 2000);
|
||||||
debug();
|
debug();
|
||||||
xmpp.send(from, "Alright. Starting a new meeting: " + xmpp_muc_name + "@" + xmpp_muc_server + " and inviting friends");
|
xmpp.send(from, "Alright. Starting a new meeting: " + xmpp_muc_name + "@" + xmpp_muc_server + " and inviting friends");
|
||||||
}
|
}}
|
||||||
}
|
}
|
||||||
|
|
||||||
// End meeting
|
// End meeting
|
||||||
|
|
Reference in New Issue
Block a user