Software /
code /
prosody
Changeset
1151:8096941b6734
util.stanza: Omit unused clone parameter from error_reply()
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 15 May 2009 06:39:53 +0500 |
parents | 1150:d71a8f28f18b |
children | 1152:4d95e8078405 |
files | util/stanza.lua |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/util/stanza.lua Fri May 15 06:34:42 2009 +0500 +++ b/util/stanza.lua Fri May 15 06:39:53 2009 +0500 @@ -258,10 +258,9 @@ return stanza(orig.name, orig.attr and { to = orig.attr.from, from = orig.attr.to, id = orig.attr.id, type = ((orig.name == "iq" and "result") or orig.attr.type) }); end -function error_reply(orig, type, condition, message, clone) +function error_reply(orig, type, condition, message) local t = reply(orig); t.attr.type = "error"; - -- TODO use clone t:tag("error", {type = type}) :tag(condition, {xmlns = "urn:ietf:params:xml:ns:xmpp-stanzas"}):up(); if (message) then t:tag("text"):text(message):up(); end