X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Fctdlproto%2Fserv_file.c;fp=citadel%2Fmodules%2Fctdlproto%2Fserv_file.c;h=8a3bd5c823e84c89afd0d14ec6c204dab0e915ce;hp=50661c7c75d64187e97edcdbef00a4d88fcc4bce;hb=0d239d8372269d6567378f5c87f471d986ad3662;hpb=5be699b405ae053789b0c0bf055ed6903ae8e6f3 diff --git a/citadel/modules/ctdlproto/serv_file.c b/citadel/modules/ctdlproto/serv_file.c index 50661c7c7..8a3bd5c82 100644 --- a/citadel/modules/ctdlproto/serv_file.c +++ b/citadel/modules/ctdlproto/serv_file.c @@ -557,14 +557,16 @@ void cmd_ucls(char *cmd) fclose(fp); } - /* put together an upload notice */ - snprintf(upload_notice, sizeof upload_notice, - "NEW UPLOAD: '%s'\n %s\n%s\n", - CC->upl_file, - CC->upl_comment, - CC->upl_mimetype); - quickie_message(CC->curr_user, NULL, NULL, CC->room.QRname, - upload_notice, 0, NULL); + if ((CC->room.QRflags2 & QR2_NOUPLMSG) == 0) { + /* put together an upload notice */ + snprintf(upload_notice, sizeof upload_notice, + "NEW UPLOAD: '%s'\n %s\n%s\n", + CC->upl_file, + CC->upl_comment, + CC->upl_mimetype); + quickie_message(CC->curr_user, NULL, NULL, CC->room.QRname, + upload_notice, 0, NULL); + } } else { abort_upl(CC); cprintf("%d File '%s' aborted.\n", CIT_OK, CC->upl_path);