lm.lua
changeset 12 63f06a23c235
parent 7 5db1448eb857
child 16 09b375e9ce32
--- a/lm.lua	Sun Mar 08 00:48:19 2009 +0200
+++ b/lm.lua	Sat Mar 14 02:41:26 2009 +0200
@@ -210,8 +210,8 @@
 	if type ( a ) ~= "table" then
 		error "table expected as argument"
 	end
-	if not a.mtype or not a.to then
-		error "you must specify message type and destination"
+	if not a.mtype then
+		error "you must specify message type"
 	end
 	local mtype, subtype = a.mtype:match ( "(.-)%-(.+)" )
 	local m