| | 174 | | void sig_dccget_connected(GET_DCC_REC *dcc) | | | 175 | | { | | | 176 | | struct stat statbuf; | | | 177 | | char *fname, *tempfname, *str; | | | 178 | | int ret, ret_errno, temphandle, old_umask; | | | 179 | | | | | 180 | | if (!dcc->from_dccserver) { | | | 181 | | if (net_geterror(dcc->handle) != 0) { | | | 182 | | | | | 183 | | signal_emit("dcc error connect", 1, dcc); | | | 184 | | dcc_destroy(DCC(dcc));
| | | 185 | | return; | | | 186 | | } | | | 187 | | | | | 188 | | g_source_remove(dcc->tagconn); | | | 189 | | dcc->tagconn = -1; | | | 190 | | } | | | 191 | | | | | 192 | | g_free_not_null(dcc->file);
| | | 193 | | dcc->file = dcc_get_download_path(dcc->arg); | | | 194 | | | | | 195 | | | | | 196 | | signal_emit("dcc get receive", 1, dcc); | | | 197 | | | | | 198 | | if (stat(dcc->file, &statbuf) == 0 && | | | 199 | | dcc->get_type == DCC_GET_RENAME) { | | | 200 | | |
|