Merge branch 'master' into i18n-de/help

This commit is contained in:
Dave Conway-Jones
2021-03-12 13:16:46 +00:00
committed by GitHub
15 changed files with 208 additions and 47 deletions

View File

@@ -470,11 +470,12 @@ module.exports = function(RED) {
if (stanza.attrs.type === 'error') {
var error = stanza.getChild('error');
if (error.attrs.code) {
var reas = "";
try {
var reas = error.toString().split('><')[1].split(" xml")[0].trim();
reas = error.toString().split('><')[1].split(" xml")[0].trim();
if (reas == "registration-required") { reas = "membership-required"; }
}
catch(e) {};
catch(e) {}
var msg = {
topic:stanza.attrs.from,
payload: {
@@ -692,11 +693,12 @@ module.exports = function(RED) {
if (stanza.attrs.type === 'error') {
var error = stanza.getChild('error');
if (error.attrs.code) {
var reas = "";
try {
var reas = error.toString().split('><')[1].split(" xml")[0].trim();
reas = error.toString().split('><')[1].split(" xml")[0].trim();
if (reas == "registration-required") { reas = "membership-required"; }
}
catch(e) {};
catch(e) {}
var msg = {
topic:stanza.attrs.from,
payload: {

View File

@@ -1,6 +1,6 @@
{
"name": "node-red-node-xmpp",
"version": "0.5.0",
"version": "0.5.1",
"description": "A Node-RED node to talk to an XMPP server",
"dependencies": {
"@xmpp/client": "^0.12.0"