mod_firewall/conditions.lib.lua
changeset 2886 6f289283feb1
parent 2863 22e11645a895
child 2898 165d2877eeac
equal deleted inserted replaced
2885:824b0d7fa883 2886:6f289283feb1
   275 	end
   275 	end
   276 	return ("not not session.firewall_marked_"..idsafe(name));
   276 	return ("not not session.firewall_marked_"..idsafe(name));
   277 end
   277 end
   278 
   278 
   279 function condition_handlers.SENT_DIRECTED_PRESENCE_TO_SENDER()
   279 function condition_handlers.SENT_DIRECTED_PRESENCE_TO_SENDER()
   280 	return "not not session.directed[from]", { "from" };
   280 	return "not not (session.directed and session.directed[from])", { "from" };
   281 end
   281 end
   282 
   282 
   283 -- TO FULL JID?
   283 -- TO FULL JID?
   284 function condition_handlers.TO_FULL_JID()
   284 function condition_handlers.TO_FULL_JID()
   285 	return "not not full_sessions[to]", { "to" };
   285 	return "not not full_sessions[to]", { "to" };