reply.put( "type", new Long( RT_AZ2_REPLY_MESSAGE ));
}else if ( type == RT_AZ2_REQUEST_SEND_TORRENT ){
try{
final Torrent torrent = plugin.getPluginInterface().getTorrentManager().createFromBEncodedData((byte[])request.get( "torrent" ));
new AEThread2( "torrentAdder", true )
{
public void
run()
{
PluginInterface pi = plugin.getPluginInterface();
String msg = pi.getUtilities().getLocaleUtilities().getLocalisedMessageText(
"azbuddy.addtorrent.msg",
new String[]{ from_buddy.getName(), torrent.getName() });
long res = pi.getUIManager().showMessageBox(
"azbuddy.addtorrent.title",
"!" + msg + "!",
UIManagerEvent.MT_YES | UIManagerEvent.MT_NO );