Changed lightauth to reauth command

More on #20
This commit is contained in:
Stephen Vanderwarker 2023-02-07 20:36:56 -05:00
parent bf06259369
commit 03883a3030

View File

@ -280,7 +280,7 @@ try {
}); });
debug(); debug();
} }
} else if (message === '!lightsauth') { } else if (message === '!reauth') {
if (from != user_jid) { if (from != user_jid) {
xmpp.send(from, pc); xmpp.send(from, pc);
} else { } else {
@ -450,7 +450,8 @@ try {
xmpp.send(from, pc); xmpp.send(from, pc);
} else { } else {
if (xmpp_server_type === "ejabberd"){ if (xmpp_server_type === "ejabberd"){
fs.readFileSync('./servers/ejabberd.js', 'utf-8'); fs.readFileSync('./servers/ejabberd.js', 'utf-8');
console.log("server type is ejabberd");
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");
} }
@ -459,7 +460,9 @@ try {
xmpp.send(from, "Please see https://git.vanderwarker.family/vxmppb/vxmppb/issues/20") xmpp.send(from, "Please see https://git.vanderwarker.family/vxmppb/vxmppb/issues/20")
} }
else if (xmpp_server_type === "openfire"){ else if (xmpp_server_type === "openfire"){
fs.readFileSync('./servers/openfire.js', 'utf-8'); // fs.readFileSync('./servers/openfire.js', 'utf-8');
xmpp.send(from, "Ejabberd is the only supported server at the moment.")
xmpp.send(from, "Please see https://git.vanderwarker.family/vxmppb/vxmppb/issues/20")
} }
} }
} }
@ -571,4 +574,4 @@ try {
console.log("Please create a config.ini"); console.log("Please create a config.ini");
console.log("See https://wiki.vanderwarker.family/doku.php?id=code:vxmppb:install:start"); console.log("See https://wiki.vanderwarker.family/doku.php?id=code:vxmppb:install:start");
console.log("and choose your prefered install method."); console.log("and choose your prefered install method.");
} }