Diff

plugins/mod_pubsub.lua @ 3908:4d8081c35f01

mod_pubsub: Add 'forbidden' error support
author Matthew Wild <mwild1@gmail.com>
date Tue, 21 Dec 2010 03:18:17 +0000
parent 3761:e5fb26e8faeb
child 3911:a99a2bb7a6ec
line wrap: on
line diff
--- a/plugins/mod_pubsub.lua	Tue Dec 21 01:47:49 2010 +0000
+++ b/plugins/mod_pubsub.lua	Tue Dec 21 03:18:17 2010 +0000
@@ -29,6 +29,7 @@
 	["invalid-jid"] = { "modify", "bad-request", nil, "invalid-jid" };
 	["item-not-found"] = { "cancel", "item-not-found" };
 	["not-subscribed"] = { "modify", "unexpected-request", nil, "not-subscribed" };
+	["forbidden"] = { "cancel", "forbidden" };
 };
 function pubsub_error_reply(stanza, error)
 	local e = pubsub_errors[error];