plugins/mod_pep_plus.lua
changeset 6446 f4403c270ea2
parent 6435 388786af0dd2
child 6447 aab509a9d0ba
equal deleted inserted replaced
6445:0f4025abbe8f 6446:f4403c270ea2
   131 				create = true;
   131 				create = true;
   132 				publish = true;
   132 				publish = true;
   133 				retract = true;
   133 				retract = true;
   134 				delete = true;
   134 				delete = true;
   135 				get_nodes = true;
   135 				get_nodes = true;
       
   136 				configure = true;
   136 
   137 
   137 				subscribe = true;
   138 				subscribe = true;
   138 				unsubscribe = true;
   139 				unsubscribe = true;
   139 				get_subscription = true;
   140 				get_subscription = true;
   140 				get_subscriptions = true;
   141 				get_subscriptions = true;
   148 
   149 
   149 				be_subscribed = true;
   150 				be_subscribed = true;
   150 				be_unsubscribed = true;
   151 				be_unsubscribed = true;
   151 
   152 
   152 				set_affiliation = true;
   153 				set_affiliation = true;
       
   154 			};
       
   155 		};
       
   156 
       
   157 		node_config_form = require"util.dataforms".new {
       
   158 			{
       
   159 				type = "hidden";
       
   160 				name = "FORM_TYPE";
       
   161 				value = "http://jabber.org/protocol/pubsub#node_config";
       
   162 			};
       
   163 			{
       
   164 				type = "text-single";
       
   165 				name = "pubsub#max_items";
       
   166 				label = "Max # of items to persist";
   153 			};
   167 			};
   154 		};
   168 		};
   155 
   169 
   156 		autocreate_on_publish = true;
   170 		autocreate_on_publish = true;
   157 		autocreate_on_subscribe = true;
   171 		autocreate_on_subscribe = true;