examples/xep0077.lua
changeset 34 8206d7cb1447
parent 25 38c68c285e41
equal deleted inserted replaced
33:db5396037b43 34:8206d7cb1447
   160 			who = args
   160 			who = args
   161 		else
   161 		else
   162 			who = main.full_jid ()
   162 			who = main.full_jid ()
   163 		end
   163 		end
   164 		register_to ( who )
   164 		register_to ( who )
   165 	end, 'jid' )
   165 	end, false, 'jid' )
   166 
   166 
   167 main.command ( 'cancel',
   167 main.command ( 'cancel',
   168 	function ( args )
   168 	function ( args )
   169 		local who
   169 		local who
   170 		if args and args ~= '' then
   170 		if args and args ~= '' then
   171 			who = args
   171 			who = args
   172 		else
   172 		else
   173 			who = main.full_jid ()
   173 			who = main.full_jid ()
   174 		end
   174 		end
   175 		unregister_from ( who )
   175 		unregister_from ( who )
   176 	end, 'jid' )
   176 	end, false, 'jid' )
   177 
   177 
   178 commands_help['register'] = "[jid]\n\nSends registration request to jid (or current buddy). You, probably, then will need to fill and send some form."
   178 commands_help['register'] = "[jid]\n\nSends registration request to jid (or current buddy). You, probably, then will need to fill and send some form."
   179 commands_help['cancel'] = "[jid]\n\nSends registration cancellation request to jid (or current buddy). May require a form filling."
   179 commands_help['cancel'] = "[jid]\n\nSends registration cancellation request to jid (or current buddy). May require a form filling."
   180 
   180 
   181 -- vim: se ts=4: --
   181 -- vim: se ts=4: --