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) {
|
||||
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
|
||||
|
|
Reference in New Issue
Block a user