mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
indent at 4
This commit is contained in:
parent
305a134fe2
commit
9997e7c0fd
@ -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') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user