static void rawlog_save (server *serv, char *file) { int fh = -1; if (file) { if (serv->gui->rawlog_window) fh = hexchat_open_file (file, O_TRUNC | O_WRONLY | O_CREAT, 0600, XOF_DOMODE | XOF_FULLPATH); if (fh != -1) { gtk_xtext_save (GTK_XTEXT (serv->gui->rawlog_textlist), fh); close (fh); } } }
static void savebuffer_req_done (session *sess, char *file) { #if 0 int fh; if (!file) return; fh = open (file, O_TRUNC | O_WRONLY | O_CREAT, 0600); if (fh != -1) { gtk_xtext_save (GTK_XTEXT (sess->gui->xtext), fh); close (fh); } #endif }