# HG changeset patch # User Emmanuel Gil Peyrot # Date 1287507353 -7200 # Node ID 957550e2d5a1af5300df4b671f8fa71eb896194e # Parent 032090a13fe80a921a80d3120cf4eaaea55e7d85 Correct an error identifier and use an already defined variable. diff --git a/psgxs.js b/psgxs.js --- a/psgxs.js +++ b/psgxs.js @@ -735,7 +735,7 @@ function onIq(stanza) { instant = true; } if (storage.existsNode(nodeID)) - return makeError(response, errors.nodeid_already_exists.n); + return makeError(response, errors.owner.create.nodeid_already_exists.n); var bare = toBareJID(to); var right = false; @@ -774,7 +774,7 @@ function onIq(stanza) { if (!conf) conf = {}; - conf['pubsub#creator'] = toBareJID(to); + conf['pubsub#creator'] = bare; var r = storage.createNode(nodeID, conf); if (typeof r == 'number')