/****************** XChat Auto XDCC plugin ****************** * * Enables auto downloading a list of files that you have specified * */ #include "xchat_plugin.h" #include #include #include #include #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 vDownloadList; void savelist() { ofstream file("download_list.txt"); file.clear(); for (vector::iterator itr = vDownloadList.begin(); itr < vDownloadList.end(); itr++) { file << *itr << endl; } file.close(); }