diff --git a/index.js b/index.js index b7ea449..bcd8526 100755 --- a/index.js +++ b/index.js @@ -280,7 +280,7 @@ try { }); debug(); } - } else if (message === '!lightsauth') { + } else if (message === '!reauth') { if (from != user_jid) { xmpp.send(from, pc); } else { @@ -450,7 +450,8 @@ try { xmpp.send(from, pc); } else { 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(); 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") } 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("See https://wiki.vanderwarker.family/doku.php?id=code:vxmppb:install:start"); console.log("and choose your prefered install method."); -} \ No newline at end of file +}