All pastes #742051 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-10-19 05:45 UTC
rendered paste body
void openlist()
{
	vDownloadList.clear();

	string szTemp;
	ifstream file("download_list.txt", ios_base::in);
	while ( std::getline(file, szTemp) )
	{
		vDownloadList.push_back(szTemp);
	}
	file.close();
}

void clearlist()
{
	ifstream file("download_list.txt");
	file.clear();
	file.close();
}

void download(string szChan, string szBot, string szFile)
{
	xchat_command(ph, string("join #"+szChan).c_str());
	xchat_command(ph, string("msg " + szBot + " xdcc send " + szFile).c_str());
}