examples/xep0163.lua
changeset 29 0199ecce6c11
parent 27 92b254b64360
child 31 54957980a83a
equal deleted inserted replaced
28:90e52372b595 29:0199ecce6c11
   115 
   115 
   116 pep_incoming_message_handler = lm.message_handler.new (
   116 pep_incoming_message_handler = lm.message_handler.new (
   117 	function ( conn, mess )
   117 	function ( conn, mess )
   118 		local e = mess:child ( 'event' )
   118 		local e = mess:child ( 'event' )
   119 		if e and e:attribute ( 'xmlns' ) == 'http://jabber.org/protocol/pubsub#event' then
   119 		if e and e:attribute ( 'xmlns' ) == 'http://jabber.org/protocol/pubsub#event' then
   120 			local enable = yesno ( main.option ( 'pep_notification' ) )
   120 			local enable = yesno ( main.option ( 'lua_pep_notification' ) )
   121 			if enable == false then
   121 			if enable == false then
   122 				return true
   122 				return true
   123 			end
   123 			end
   124 			local is = e:child ( 'items' )
   124 			local is = e:child ( 'items' )
   125 			if is then
   125 			if is then