indent at 4

This commit is contained in:
Andreas Martens 2020-07-15 14:53:33 -07:00
parent 305a134fe2
commit 9997e7c0fd

View File

@ -141,7 +141,7 @@ module.exports = function(RED) {
// provide some presence so people can see we're online // provide some presence so people can see we're online
that.connected = true; that.connected = true;
await that.client.send(xml('presence')); await that.client.send(xml('presence'));
// await that.client.send(xml('presence', {type: 'available'},xml('status', {}, 'available'))); // await that.client.send(xml('presence', {type: 'available'},xml('status', {}, 'available')));
if (RED.settings.verbose || LOGITALL) {that.log('connected as '+that.username+' to ' +that.server+':'+that.port);} if (RED.settings.verbose || LOGITALL) {that.log('connected as '+that.username+' to ' +that.server+':'+that.port);}
}); });
@ -264,7 +264,7 @@ module.exports = function(RED) {
// Meat of it, a stanza object contains chat messages (and other things) // Meat of it, a stanza object contains chat messages (and other things)
xmpp.on('stanza', async (stanza) =>{ xmpp.on('stanza', async (stanza) =>{
// node.log("Received stanza"); // node.log("Received stanza");
if (RED.settings.verbose || LOGITALL) {node.log(stanza);} if (RED.settings.verbose || LOGITALL) {node.log(stanza);}
if (stanza.is('message')) { if (stanza.is('message')) {
if (stanza.attrs.type == 'chat') { if (stanza.attrs.type == 'chat') {