examples/xep0146.lua
changeset 35 8deda77c72e5
parent 34 8206d7cb1447
child 36 b156d7342ec1
--- a/examples/xep0146.lua	Mon Mar 16 18:54:16 2009 +0200
+++ b/examples/xep0146.lua	Mon Mar 16 19:57:51 2009 +0200
@@ -49,7 +49,7 @@
 		end
 		local action = args[1]
 		if not action then
-			disco_items (
+			disco_items ( lm.connection.bless ( main.connection (),
 				function ( items )
 					if type ( items ) == 'string' then
 						main.print_info ( who, string.format ( "Service items discovery for %s (http://jabber.org/protocol/commands) failed: %s", who, items ) )