All pastes #742048 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-10-19 05:43 UTC
rendered paste body
/****************** XChat Auto XDCC plugin ******************
 *
 * Enables auto downloading a list of files that you have specified
 *
 */

#include "xchat_plugin.h"

#include <vector>
#include <string>
#include <fstream>
#include <boost/lexical_cast.hpp>

#define PNAME "AutoXDCC"
#define PDESC "Allows automated download with XDCC";
#define PVERSION "0.1"


using namespace std;

static xchat_plugin *ph;   /* plugin handle */
static bool bEnabled = false;
static bool bDownloading = false;
vector<string> vDownloadList;

void savelist()
{
	ofstream file("download_list.txt");
	file.clear();
	for (vector<string>::iterator itr = vDownloadList.begin(); itr < vDownloadList.end(); itr++)
	{
		file << *itr << endl;
	}
	file.close();
}