examples/lm/attention.lua
changeset 99 ed4676536ed9
parent 68 742878c74b8e
--- a/examples/lm/attention.lua	Wed Mar 31 00:28:04 2010 +0300
+++ b/examples/lm/attention.lua	Wed Mar 31 01:25:19 2010 +0300
@@ -9,7 +9,7 @@
 
 local O = {
 	handler =
-		function ( mesg )
+		function ( mesg, from )
 		end,
 }
 
@@ -38,7 +38,7 @@
 		if body then
 			body = body:value ()
 		end
-		O.handler ( body )
+		O.handler ( body, mess:attribute ( "from" ) )
 	end
 	return false
 end